diffprism 1.3.3 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/dist/bin.js +42 -35
- package/dist/{chunk-4PXCENR6.js → chunk-GF455BBV.js} +2 -2
- package/dist/{chunk-3GMPE2ZR.js → chunk-GGK6TIQZ.js} +22 -0
- package/dist/{chunk-EPU4F7WT.js → chunk-RFDSC6MC.js} +1 -1
- package/dist/{chunk-UWIDAULW.js → chunk-YGUHES4P.js} +56 -41
- package/dist/{demo-WOT5AZBP.js → demo-F47GIDSV.js} +3 -3
- package/dist/mcp-server.js +11 -6
- package/dist/{src-DNNNQ2RD.js → src-LLACFIIT.js} +2 -2
- package/dist/{src-OZQ32NDN.js → src-XT4XP6TC.js} +3 -1
- package/package.json +2 -1
- package/ui-dist/assets/index-C_mA2r7X.js +350 -0
- package/ui-dist/assets/index-DrWM7I5e.css +1 -0
- package/ui-dist/index.html +2 -2
- package/ui-dist/assets/index-BulxhOr3.css +0 -1
- package/ui-dist/assets/index-DPjdYQ0h.js +0 -345
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function r(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function s(o){if(o.ep)return;o.ep=!0;const d=r(o);fetch(o.href,d)}})();function q0(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Ic={exports:{}},Nr={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var mm;function I0(){if(mm)return Nr;mm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(s,o,d){var h=null;if(d!==void 0&&(h=""+d),o.key!==void 0&&(h=""+o.key),"key"in o){d={};for(var p in o)p!=="key"&&(d[p]=o[p])}else d=o;return o=d.ref,{$$typeof:l,type:s,key:h,ref:o!==void 0?o:null,props:d}}return Nr.Fragment=i,Nr.jsx=r,Nr.jsxs=r,Nr}var pm;function X0(){return pm||(pm=1,Ic.exports=I0()),Ic.exports}var f=X0(),Xc={exports:{}},wr={},Fc={exports:{}},$c={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var ym;function F0(){return ym||(ym=1,(function(l){function i(k,L){var le=k.length;k.push(L);e:for(;0<le;){var ue=le-1>>>1,ce=k[ue];if(0<o(ce,L))k[ue]=L,k[le]=ce,le=ue;else break e}}function r(k){return k.length===0?null:k[0]}function s(k){if(k.length===0)return null;var L=k[0],le=k.pop();if(le!==L){k[0]=le;e:for(var ue=0,ce=k.length,N=ce>>>1;ue<N;){var q=2*(ue+1)-1,P=k[q],J=q+1,Q=k[J];if(0>o(P,le))J<ce&&0>o(Q,P)?(k[ue]=Q,k[J]=le,ue=J):(k[ue]=P,k[q]=le,ue=q);else if(J<ce&&0>o(Q,le))k[ue]=Q,k[J]=le,ue=J;else break e}}return L}function o(k,L){var le=k.sortIndex-L.sortIndex;return le!==0?le:k.id-L.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;l.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();l.unstable_now=function(){return h.now()-p}}var g=[],m=[],v=1,x=null,S=3,E=!1,A=!1,C=!1,_=!1,U=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function $(k){for(var L=r(m);L!==null;){if(L.callback===null)s(m);else if(L.startTime<=k)s(m),L.sortIndex=L.expirationTime,i(g,L);else break;L=r(m)}}function Y(k){if(C=!1,$(k),!A)if(r(g)!==null)A=!0,F||(F=!0,fe());else{var L=r(m);L!==null&&W(Y,L.startTime-k)}}var F=!1,H=-1,R=5,K=-1;function ie(){return _?!0:!(l.unstable_now()-K<R)}function re(){if(_=!1,F){var k=l.unstable_now();K=k;var L=!0;try{e:{A=!1,C&&(C=!1,I(H),H=-1),E=!0;var le=S;try{t:{for($(k),x=r(g);x!==null&&!(x.expirationTime>k&&ie());){var ue=x.callback;if(typeof ue=="function"){x.callback=null,S=x.priorityLevel;var ce=ue(x.expirationTime<=k);if(k=l.unstable_now(),typeof ce=="function"){x.callback=ce,$(k),L=!0;break t}x===r(g)&&s(g),$(k)}else s(g);x=r(g)}if(x!==null)L=!0;else{var N=r(m);N!==null&&W(Y,N.startTime-k),L=!1}}break e}finally{x=null,S=le,E=!1}L=void 0}}finally{L?fe():F=!1}}}var fe;if(typeof O=="function")fe=function(){O(re)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,ee=ne.port2;ne.port1.onmessage=re,fe=function(){ee.postMessage(null)}}else fe=function(){U(re,0)};function W(k,L){H=U(function(){k(l.unstable_now())},L)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(k){k.callback=null},l.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<k?Math.floor(1e3/k):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_next=function(k){switch(S){case 1:case 2:case 3:var L=3;break;default:L=S}var le=S;S=L;try{return k()}finally{S=le}},l.unstable_requestPaint=function(){_=!0},l.unstable_runWithPriority=function(k,L){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var le=S;S=k;try{return L()}finally{S=le}},l.unstable_scheduleCallback=function(k,L,le){var ue=l.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?ue+le:ue):le=ue,k){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=le+ce,k={id:v++,callback:L,priorityLevel:k,startTime:le,expirationTime:ce,sortIndex:-1},le>ue?(k.sortIndex=le,i(m,k),r(g)===null&&k===r(m)&&(C?(I(H),H=-1):C=!0,W(Y,le-ue))):(k.sortIndex=ce,i(g,k),A||E||(A=!0,F||(F=!0,fe()))),k},l.unstable_shouldYield=ie,l.unstable_wrapCallback=function(k){var L=S;return function(){var le=S;S=L;try{return k.apply(this,arguments)}finally{S=le}}}})($c)),$c}var bm;function $0(){return bm||(bm=1,Fc.exports=F0()),Fc.exports}var Zc={exports:{}},be={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var vm;function Z0(){if(vm)return be;vm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function E(N){return N===null||typeof N!="object"?null:(N=S&&N[S]||N["@@iterator"],typeof N=="function"?N:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,_={};function U(N,q,P){this.props=N,this.context=q,this.refs=_,this.updater=P||A}U.prototype.isReactComponent={},U.prototype.setState=function(N,q){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,q,"setState")},U.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function I(){}I.prototype=U.prototype;function O(N,q,P){this.props=N,this.context=q,this.refs=_,this.updater=P||A}var $=O.prototype=new I;$.constructor=O,C($,U.prototype),$.isPureReactComponent=!0;var Y=Array.isArray;function F(){}var H={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function K(N,q,P){var J=P.ref;return{$$typeof:l,type:N,key:q,ref:J!==void 0?J:null,props:P}}function ie(N,q){return K(N.type,q,N.props)}function re(N){return typeof N=="object"&&N!==null&&N.$$typeof===l}function fe(N){var q={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(P){return q[P]})}var ne=/\/+/g;function ee(N,q){return typeof N=="object"&&N!==null&&N.key!=null?fe(""+N.key):q.toString(36)}function W(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(F,F):(N.status="pending",N.then(function(q){N.status==="pending"&&(N.status="fulfilled",N.value=q)},function(q){N.status==="pending"&&(N.status="rejected",N.reason=q)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function k(N,q,P,J,Q){var ae=typeof N;(ae==="undefined"||ae==="boolean")&&(N=null);var de=!1;if(N===null)de=!0;else switch(ae){case"bigint":case"string":case"number":de=!0;break;case"object":switch(N.$$typeof){case l:case i:de=!0;break;case v:return de=N._init,k(de(N._payload),q,P,J,Q)}}if(de)return Q=Q(N),de=J===""?"."+ee(N,0):J,Y(Q)?(P="",de!=null&&(P=de.replace(ne,"$&/")+"/"),k(Q,q,P,"",function(Ce){return Ce})):Q!=null&&(re(Q)&&(Q=ie(Q,P+(Q.key==null||N&&N.key===Q.key?"":(""+Q.key).replace(ne,"$&/")+"/")+de)),q.push(Q)),1;de=0;var Ue=J===""?".":J+":";if(Y(N))for(var me=0;me<N.length;me++)J=N[me],ae=Ue+ee(J,me),de+=k(J,q,P,ae,Q);else if(me=E(N),typeof me=="function")for(N=me.call(N),me=0;!(J=N.next()).done;)J=J.value,ae=Ue+ee(J,me++),de+=k(J,q,P,ae,Q);else if(ae==="object"){if(typeof N.then=="function")return k(W(N),q,P,J,Q);throw q=String(N),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return de}function L(N,q,P){if(N==null)return N;var J=[],Q=0;return k(N,J,"","",function(ae){return q.call(P,ae,Q++)}),J}function le(N){if(N._status===-1){var q=N._result;q=q(),q.then(function(P){(N._status===0||N._status===-1)&&(N._status=1,N._result=P)},function(P){(N._status===0||N._status===-1)&&(N._status=2,N._result=P)}),N._status===-1&&(N._status=0,N._result=q)}if(N._status===1)return N._result.default;throw N._result}var ue=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},ce={map:L,forEach:function(N,q,P){L(N,function(){q.apply(this,arguments)},P)},count:function(N){var q=0;return L(N,function(){q++}),q},toArray:function(N){return L(N,function(q){return q})||[]},only:function(N){if(!re(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return be.Activity=x,be.Children=ce,be.Component=U,be.Fragment=r,be.Profiler=o,be.PureComponent=O,be.StrictMode=s,be.Suspense=g,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,be.__COMPILER_RUNTIME={__proto__:null,c:function(N){return H.H.useMemoCache(N)}},be.cache=function(N){return function(){return N.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(N,q,P){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var J=C({},N.props),Q=N.key;if(q!=null)for(ae in q.key!==void 0&&(Q=""+q.key),q)!R.call(q,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&q.ref===void 0||(J[ae]=q[ae]);var ae=arguments.length-2;if(ae===1)J.children=P;else if(1<ae){for(var de=Array(ae),Ue=0;Ue<ae;Ue++)de[Ue]=arguments[Ue+2];J.children=de}return K(N.type,Q,J)},be.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:d,_context:N},N},be.createElement=function(N,q,P){var J,Q={},ae=null;if(q!=null)for(J in q.key!==void 0&&(ae=""+q.key),q)R.call(q,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(Q[J]=q[J]);var de=arguments.length-2;if(de===1)Q.children=P;else if(1<de){for(var Ue=Array(de),me=0;me<de;me++)Ue[me]=arguments[me+2];Q.children=Ue}if(N&&N.defaultProps)for(J in de=N.defaultProps,de)Q[J]===void 0&&(Q[J]=de[J]);return K(N,ae,Q)},be.createRef=function(){return{current:null}},be.forwardRef=function(N){return{$$typeof:p,render:N}},be.isValidElement=re,be.lazy=function(N){return{$$typeof:v,_payload:{_status:-1,_result:N},_init:le}},be.memo=function(N,q){return{$$typeof:m,type:N,compare:q===void 0?null:q}},be.startTransition=function(N){var q=H.T,P={};H.T=P;try{var J=N(),Q=H.S;Q!==null&&Q(P,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(F,ue)}catch(ae){ue(ae)}finally{q!==null&&P.types!==null&&(q.types=P.types),H.T=q}},be.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},be.use=function(N){return H.H.use(N)},be.useActionState=function(N,q,P){return H.H.useActionState(N,q,P)},be.useCallback=function(N,q){return H.H.useCallback(N,q)},be.useContext=function(N){return H.H.useContext(N)},be.useDebugValue=function(){},be.useDeferredValue=function(N,q){return H.H.useDeferredValue(N,q)},be.useEffect=function(N,q){return H.H.useEffect(N,q)},be.useEffectEvent=function(N){return H.H.useEffectEvent(N)},be.useId=function(){return H.H.useId()},be.useImperativeHandle=function(N,q,P){return H.H.useImperativeHandle(N,q,P)},be.useInsertionEffect=function(N,q){return H.H.useInsertionEffect(N,q)},be.useLayoutEffect=function(N,q){return H.H.useLayoutEffect(N,q)},be.useMemo=function(N,q){return H.H.useMemo(N,q)},be.useOptimistic=function(N,q){return H.H.useOptimistic(N,q)},be.useReducer=function(N,q,P){return H.H.useReducer(N,q,P)},be.useRef=function(N){return H.H.useRef(N)},be.useState=function(N){return H.H.useState(N)},be.useSyncExternalStore=function(N,q,P){return H.H.useSyncExternalStore(N,q,P)},be.useTransition=function(){return H.H.useTransition()},be.version="19.2.4",be}var xm;function yo(){return xm||(xm=1,Zc.exports=Z0()),Zc.exports}var Vc={exports:{}},dt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Sm;function V0(){if(Sm)return dt;Sm=1;var l=yo();function i(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(g,m,v){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:g,containerInfo:m,implementation:v}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,dt.createPortal=function(g,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return d(g,m,null,v)},dt.flushSync=function(g){var m=h.T,v=s.p;try{if(h.T=null,s.p=2,g)return g()}finally{h.T=m,s.p=v,s.d.f()}},dt.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(g,m))},dt.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},dt.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var v=m.as,x=p(v,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,E=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?s.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:E}):v==="script"&&s.d.X(g,{crossOrigin:x,integrity:S,fetchPriority:E,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},dt.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=p(m.as,m.crossOrigin);s.d.M(g,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(g)},dt.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,x=p(v,m.crossOrigin);s.d.L(g,v,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},dt.preloadModule=function(g,m){if(typeof g=="string")if(m){var v=p(m.as,m.crossOrigin);s.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(g)},dt.requestFormReset=function(g){s.d.r(g)},dt.unstable_batchedUpdates=function(g,m){return g(m)},dt.useFormState=function(g,m,v){return h.H.useFormState(g,m,v)},dt.useFormStatus=function(){return h.H.useHostTransitionStatus()},dt.version="19.2.4",dt}var Em;function K0(){if(Em)return Vc.exports;Em=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Vc.exports=V0(),Vc.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Nm;function Q0(){if(Nm)return wr;Nm=1;var l=$0(),i=yo(),r=K0();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(d(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,a=t;;){var u=n.return;if(u===null)break;var c=u.alternate;if(c===null){if(a=u.return,a!==null){n=a;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===n)return g(u),e;if(c===a)return g(u),t;c=c.sibling}throw Error(s(188))}if(n.return!==a.return)n=u,a=c;else{for(var y=!1,b=u.child;b;){if(b===n){y=!0,n=u,a=c;break}if(b===a){y=!0,a=u,n=c;break}b=b.sibling}if(!y){for(b=c.child;b;){if(b===n){y=!0,n=c,a=u;break}if(b===a){y=!0,a=c,n=u;break}b=b.sibling}if(!y)throw Error(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,S=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),O=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Symbol.for("react.client.reference");function ee(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case U:return"Profiler";case _:return"StrictMode";case Y:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case O:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case $:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return t=e.displayName||null,t!==null?t:ee(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}var W=Array.isArray,k=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},ue=[],ce=-1;function N(e){return{current:e}}function q(e){0>ce||(e.current=ue[ce],ue[ce]=null,ce--)}function P(e,t){ce++,ue[ce]=e.current,e.current=t}var J=N(null),Q=N(null),ae=N(null),de=N(null);function Ue(e,t){switch(P(ae,t),P(Q,e),P(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Bg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Bg(t),e=Hg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(J),P(J,e)}function me(){q(J),q(Q),q(ae)}function Ce(e){e.memoizedState!==null&&P(de,e);var t=J.current,n=Hg(t,e.type);t!==n&&(P(Q,e),P(J,n))}function Xe(e){Q.current===e&&(q(J),q(Q)),de.current===e&&(q(de),vr._currentValue=le)}var Ut,ht;function $e(e){if(Ut===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ut=t&&t[1]||"",ht=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Ut+e+ht}var aa=!1;function Jt(e,t){if(!e||aa)return"";aa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(G){var B=G}Reflect.construct(e,[],V)}else{try{V.call()}catch(G){B=G}e.call(V.prototype)}}else{try{throw Error()}catch(G){B=G}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(G){if(G&&B&&typeof G.stack=="string")return[G.stack,B.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),y=c[0],b=c[1];if(y&&b){var w=y.split(`
|
|
44
|
+
`),z=b.split(`
|
|
45
|
+
`);for(u=a=0;a<w.length&&!w[a].includes("DetermineComponentFrameRoot");)a++;for(;u<z.length&&!z[u].includes("DetermineComponentFrameRoot");)u++;if(a===w.length||u===z.length)for(a=w.length-1,u=z.length-1;1<=a&&0<=u&&w[a]!==z[u];)u--;for(;1<=a&&0<=u;a--,u--)if(w[a]!==z[u]){if(a!==1||u!==1)do if(a--,u--,0>u||w[a]!==z[u]){var X=`
|
|
46
|
+
`+w[a].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=a&&0<=u);break}}}finally{aa=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?$e(n):""}function vy(e,t){switch(e.tag){case 26:case 27:case 5:return $e(e.type);case 16:return $e("Lazy");case 13:return e.child!==t&&t!==null?$e("Suspense Fallback"):$e("Suspense");case 19:return $e("SuspenseList");case 0:case 15:return Jt(e.type,!1);case 11:return Jt(e.type.render,!1);case 1:return Jt(e.type,!0);case 31:return $e("Activity");default:return""}}function mf(e){try{var t="",n=null;do t+=vy(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var _s=Object.prototype.hasOwnProperty,js=l.unstable_scheduleCallback,Os=l.unstable_cancelCallback,xy=l.unstable_shouldYield,Sy=l.unstable_requestPaint,Nt=l.unstable_now,Ey=l.unstable_getCurrentPriorityLevel,pf=l.unstable_ImmediatePriority,yf=l.unstable_UserBlockingPriority,Lr=l.unstable_NormalPriority,Ny=l.unstable_LowPriority,bf=l.unstable_IdlePriority,wy=l.log,Ay=l.unstable_setDisableYieldValue,kl=null,wt=null;function _n(e){if(typeof wy=="function"&&Ay(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(kl,e)}catch{}}var At=Math.clz32?Math.clz32:_y,Ty=Math.log,Cy=Math.LN2;function _y(e){return e>>>=0,e===0?32:31-(Ty(e)/Cy|0)|0}var Ur=256,Br=262144,Hr=4194304;function la(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Gr(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var u=0,c=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?u=la(a):(y&=b,y!==0?u=la(y):n||(n=b&~e,n!==0&&(u=la(n))))):(b=a&~c,b!==0?u=la(b):y!==0?u=la(y):n||(n=a&~e,n!==0&&(u=la(n)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:u}function Rl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function jy(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vf(){var e=Hr;return Hr<<=1,(Hr&62914560)===0&&(Hr=4194304),e}function ks(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ml(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Oy(e,t,n,a,u,c){var y=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var b=e.entanglements,w=e.expirationTimes,z=e.hiddenUpdates;for(n=y&~n;0<n;){var X=31-At(n),V=1<<X;b[X]=0,w[X]=-1;var B=z[X];if(B!==null)for(z[X]=null,X=0;X<B.length;X++){var G=B[X];G!==null&&(G.lane&=-536870913)}n&=~V}a!==0&&xf(e,a,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(y&~t))}function xf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-At(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Sf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-At(n),u=1<<a;u&t|e[a]&t&&(e[a]|=t),n&=~u}}function Ef(e,t){var n=t&-t;return n=(n&42)!==0?1:Rs(n),(n&(e.suspendedLanes|t))!==0?0:n}function Rs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ms(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Nf(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:um(e.type))}function wf(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var jn=Math.random().toString(36).slice(2),st="__reactFiber$"+jn,mt="__reactProps$"+jn,Oa="__reactContainer$"+jn,Ds="__reactEvents$"+jn,ky="__reactListeners$"+jn,Ry="__reactHandles$"+jn,Af="__reactResources$"+jn,Dl="__reactMarker$"+jn;function zs(e){delete e[st],delete e[mt],delete e[Ds],delete e[ky],delete e[Ry]}function ka(e){var t=e[st];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Oa]||n[st]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$g(e);e!==null;){if(n=e[st])return n;e=$g(e)}return t}e=n,n=e.parentNode}return null}function Ra(e){if(e=e[st]||e[Oa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function zl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ma(e){var t=e[Af];return t||(t=e[Af]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Dl]=!0}var Tf=new Set,Cf={};function ra(e,t){Da(e,t),Da(e+"Capture",t)}function Da(e,t){for(Cf[e]=t,e=0;e<t.length;e++)Tf.add(t[e])}var My=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),_f={},jf={};function Dy(e){return _s.call(jf,e)?!0:_s.call(_f,e)?!1:My.test(e)?jf[e]=!0:(_f[e]=!0,!1)}function Yr(e,t,n){if(Dy(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function qr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function un(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Of(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zy(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(y){n=""+y,c.call(this,y)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(y){n=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ls(e){if(!e._valueTracker){var t=Of(e)?"checked":"value";e._valueTracker=zy(e,t,""+e[t])}}function kf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Of(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ir(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Ly=/[\n"\\]/g;function Ht(e){return e.replace(Ly,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Us(e,t,n,a,u,c,y,b){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Bt(t)):e.value!==""+Bt(t)&&(e.value=""+Bt(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?Bs(e,y,Bt(t)):n!=null?Bs(e,y,Bt(n)):a!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Bt(b):e.removeAttribute("name")}function Rf(e,t,n,a,u,c,y,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Ls(e);return}n=n!=null?""+Bt(n):"",t=t!=null?""+Bt(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Ls(e)}function Bs(e,t,n){t==="number"&&Ir(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function za(e,t,n,a){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Bt(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Mf(e,t,n){if(t!=null&&(t=""+Bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Bt(n):""}function Df(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(W(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Bt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Ls(e)}function La(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Uy=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function zf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Uy.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Lf(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var u in t)a=t[u],t.hasOwnProperty(u)&&n[u]!==a&&zf(e,u,a)}else for(var c in t)t.hasOwnProperty(c)&&zf(e,c,t[c])}function Hs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var By=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Hy=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Xr(e){return Hy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function cn(){}var Gs=null;function Ys(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ua=null,Ba=null;function Uf(e){var t=Ra(e);if(t&&(e=t.stateNode)){var n=e[mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Us(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ht(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var u=a[mt]||null;if(!u)throw Error(s(90));Us(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&kf(a)}break e;case"textarea":Mf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&za(e,!!n.multiple,t,!1)}}}var qs=!1;function Bf(e,t,n){if(qs)return e(t,n);qs=!0;try{var a=e(t);return a}finally{if(qs=!1,(Ua!==null||Ba!==null)&&(ki(),Ua&&(t=Ua,e=Ba,Ba=Ua=null,Uf(t),e)))for(t=0;t<e.length;t++)Uf(e[t])}}function Ll(e,t){var n=e.stateNode;if(n===null)return null;var a=n[mt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var on=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Is=!1;if(on)try{var Ul={};Object.defineProperty(Ul,"passive",{get:function(){Is=!0}}),window.addEventListener("test",Ul,Ul),window.removeEventListener("test",Ul,Ul)}catch{Is=!1}var On=null,Xs=null,Fr=null;function Hf(){if(Fr)return Fr;var e,t=Xs,n=t.length,a,u="value"in On?On.value:On.textContent,c=u.length;for(e=0;e<n&&t[e]===u[e];e++);var y=n-e;for(a=1;a<=y&&t[n-a]===u[c-a];a++);return Fr=u.slice(e,1<a?1-a:void 0)}function $r(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Zr(){return!0}function Gf(){return!1}function pt(e){function t(n,a,u,c,y){this._reactName=n,this._targetInst=u,this.type=a,this.nativeEvent=c,this.target=y,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Zr:Gf,this.isPropagationStopped=Gf,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Zr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Zr)},persist:function(){},isPersistent:Zr}),t}var ia={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vr=pt(ia),Bl=x({},ia,{view:0,detail:0}),Gy=pt(Bl),Fs,$s,Hl,Kr=x({},Bl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Hl&&(Hl&&e.type==="mousemove"?(Fs=e.screenX-Hl.screenX,$s=e.screenY-Hl.screenY):$s=Fs=0,Hl=e),Fs)},movementY:function(e){return"movementY"in e?e.movementY:$s}}),Yf=pt(Kr),Yy=x({},Kr,{dataTransfer:0}),qy=pt(Yy),Iy=x({},Bl,{relatedTarget:0}),Zs=pt(Iy),Xy=x({},ia,{animationName:0,elapsedTime:0,pseudoElement:0}),Fy=pt(Xy),$y=x({},ia,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zy=pt($y),Vy=x({},ia,{data:0}),qf=pt(Vy),Ky={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Jy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jy[e])?!!t[e]:!1}function Vs(){return Wy}var Py=x({},Bl,{key:function(e){if(e.key){var t=Ky[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$r(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vs,charCode:function(e){return e.type==="keypress"?$r(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$r(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),eb=pt(Py),tb=x({},Kr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),If=pt(tb),nb=x({},Bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vs}),ab=pt(nb),lb=x({},ia,{propertyName:0,elapsedTime:0,pseudoElement:0}),rb=pt(lb),ib=x({},Kr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),sb=pt(ib),ub=x({},ia,{newState:0,oldState:0}),cb=pt(ub),ob=[9,13,27,32],Ks=on&&"CompositionEvent"in window,Gl=null;on&&"documentMode"in document&&(Gl=document.documentMode);var fb=on&&"TextEvent"in window&&!Gl,Xf=on&&(!Ks||Gl&&8<Gl&&11>=Gl),Ff=" ",$f=!1;function Zf(e,t){switch(e){case"keyup":return ob.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ha=!1;function db(e,t){switch(e){case"compositionend":return Vf(t);case"keypress":return t.which!==32?null:($f=!0,Ff);case"textInput":return e=t.data,e===Ff&&$f?null:e;default:return null}}function hb(e,t){if(Ha)return e==="compositionend"||!Ks&&Zf(e,t)?(e=Hf(),Fr=Xs=On=null,Ha=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Xf&&t.locale!=="ko"?null:t.data;default:return null}}var gb={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Kf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!gb[e.type]:t==="textarea"}function Qf(e,t,n,a){Ua?Ba?Ba.push(a):Ba=[a]:Ua=a,t=Bi(t,"onChange"),0<t.length&&(n=new Vr("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Yl=null,ql=null;function mb(e){Rg(e,0)}function Qr(e){var t=zl(e);if(kf(t))return e}function Jf(e,t){if(e==="change")return t}var Wf=!1;if(on){var Qs;if(on){var Js="oninput"in document;if(!Js){var Pf=document.createElement("div");Pf.setAttribute("oninput","return;"),Js=typeof Pf.oninput=="function"}Qs=Js}else Qs=!1;Wf=Qs&&(!document.documentMode||9<document.documentMode)}function ed(){Yl&&(Yl.detachEvent("onpropertychange",td),ql=Yl=null)}function td(e){if(e.propertyName==="value"&&Qr(ql)){var t=[];Qf(t,ql,e,Ys(e)),Bf(mb,t)}}function pb(e,t,n){e==="focusin"?(ed(),Yl=t,ql=n,Yl.attachEvent("onpropertychange",td)):e==="focusout"&&ed()}function yb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qr(ql)}function bb(e,t){if(e==="click")return Qr(t)}function vb(e,t){if(e==="input"||e==="change")return Qr(t)}function xb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:xb;function Il(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var u=n[a];if(!_s.call(t,u)||!Tt(e[u],t[u]))return!1}return!0}function nd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ad(e,t){var n=nd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=nd(n)}}function ld(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ld(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ir(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ir(e.document)}return t}function Ws(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Sb=on&&"documentMode"in document&&11>=document.documentMode,Ga=null,Ps=null,Xl=null,eu=!1;function id(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;eu||Ga==null||Ga!==Ir(a)||(a=Ga,"selectionStart"in a&&Ws(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Xl&&Il(Xl,a)||(Xl=a,a=Bi(Ps,"onSelect"),0<a.length&&(t=new Vr("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Ga)))}function sa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ya={animationend:sa("Animation","AnimationEnd"),animationiteration:sa("Animation","AnimationIteration"),animationstart:sa("Animation","AnimationStart"),transitionrun:sa("Transition","TransitionRun"),transitionstart:sa("Transition","TransitionStart"),transitioncancel:sa("Transition","TransitionCancel"),transitionend:sa("Transition","TransitionEnd")},tu={},sd={};on&&(sd=document.createElement("div").style,"AnimationEvent"in window||(delete Ya.animationend.animation,delete Ya.animationiteration.animation,delete Ya.animationstart.animation),"TransitionEvent"in window||delete Ya.transitionend.transition);function ua(e){if(tu[e])return tu[e];if(!Ya[e])return e;var t=Ya[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in sd)return tu[e]=t[n];return e}var ud=ua("animationend"),cd=ua("animationiteration"),od=ua("animationstart"),Eb=ua("transitionrun"),Nb=ua("transitionstart"),wb=ua("transitioncancel"),fd=ua("transitionend"),dd=new Map,nu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");nu.push("scrollEnd");function Wt(e,t){dd.set(e,t),ra(t,[e])}var Jr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Gt=[],qa=0,au=0;function Wr(){for(var e=qa,t=au=qa=0;t<e;){var n=Gt[t];Gt[t++]=null;var a=Gt[t];Gt[t++]=null;var u=Gt[t];Gt[t++]=null;var c=Gt[t];if(Gt[t++]=null,a!==null&&u!==null){var y=a.pending;y===null?u.next=u:(u.next=y.next,y.next=u),a.pending=u}c!==0&&hd(n,u,c)}}function Pr(e,t,n,a){Gt[qa++]=e,Gt[qa++]=t,Gt[qa++]=n,Gt[qa++]=a,au|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function lu(e,t,n,a){return Pr(e,t,n,a),ei(e)}function ca(e,t){return Pr(e,null,null,t),ei(e)}function hd(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var u=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-At(n),e=c.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=n|536870912),c):null}function ei(e){if(50<dr)throw dr=0,hc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ia={};function Ab(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,n,a){return new Ab(e,t,n,a)}function ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fn(e,t){var n=e.alternate;return n===null?(n=Ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function gd(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ti(e,t,n,a,u,c){var y=0;if(a=e,typeof e=="function")ru(e)&&(y=1);else if(typeof e=="string")y=O0(e,n,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case K:return e=Ct(31,n,t,u),e.elementType=K,e.lanes=c,e;case C:return oa(n.children,u,c,t);case _:y=8,u|=24;break;case U:return e=Ct(12,n,t,u|2),e.elementType=U,e.lanes=c,e;case Y:return e=Ct(13,n,t,u),e.elementType=Y,e.lanes=c,e;case F:return e=Ct(19,n,t,u),e.elementType=F,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:y=10;break e;case I:y=9;break e;case $:y=11;break e;case H:y=14;break e;case R:y=16,a=null;break e}y=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=Ct(y,n,t,u),t.elementType=e,t.type=a,t.lanes=c,t}function oa(e,t,n,a){return e=Ct(7,e,a,t),e.lanes=n,e}function iu(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function md(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function su(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var pd=new WeakMap;function Yt(e,t){if(typeof e=="object"&&e!==null){var n=pd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:mf(t)},pd.set(e,t),t)}return{value:e,source:t,stack:mf(t)}}var Xa=[],Fa=0,ni=null,Fl=0,qt=[],It=0,kn=null,tn=1,nn="";function dn(e,t){Xa[Fa++]=Fl,Xa[Fa++]=ni,ni=e,Fl=t}function yd(e,t,n){qt[It++]=tn,qt[It++]=nn,qt[It++]=kn,kn=e;var a=tn;e=nn;var u=32-At(a)-1;a&=~(1<<u),n+=1;var c=32-At(t)+u;if(30<c){var y=u-u%5;c=(a&(1<<y)-1).toString(32),a>>=y,u-=y,tn=1<<32-At(t)+u|n<<u|a,nn=c+e}else tn=1<<c|n<<u|a,nn=e}function uu(e){e.return!==null&&(dn(e,1),yd(e,1,0))}function cu(e){for(;e===ni;)ni=Xa[--Fa],Xa[Fa]=null,Fl=Xa[--Fa],Xa[Fa]=null;for(;e===kn;)kn=qt[--It],qt[It]=null,nn=qt[--It],qt[It]=null,tn=qt[--It],qt[It]=null}function bd(e,t){qt[It++]=tn,qt[It++]=nn,qt[It++]=kn,tn=t.id,nn=t.overflow,kn=e}var ut=null,Ge=null,Te=!1,Rn=null,Xt=!1,ou=Error(s(519));function Mn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $l(Yt(t,e)),ou}function vd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[st]=e,t[mt]=a,n){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(n=0;n<gr.length;n++)Ne(gr[n],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),Rf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),Df(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Lg(t.textContent,n)?(a.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),a.onScroll!=null&&Ne("scroll",t),a.onScrollEnd!=null&&Ne("scrollend",t),a.onClick!=null&&(t.onclick=cn),t=!0):t=!1,t||Mn(e,!0)}function xd(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:Xt=!1;return;case 27:case 3:Xt=!0;return;default:ut=ut.return}}function $a(e){if(e!==ut)return!1;if(!Te)return xd(e),Te=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||_c(e.type,e.memoizedProps)),n=!n),n&&Ge&&Mn(e),xd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ge=Fg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ge=Fg(e)}else t===27?(t=Ge,Zn(e.type)?(e=Mc,Mc=null,Ge=e):Ge=t):Ge=ut?$t(e.stateNode.nextSibling):null;return!0}function fa(){Ge=ut=null,Te=!1}function fu(){var e=Rn;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),Rn=null),e}function $l(e){Rn===null?Rn=[e]:Rn.push(e)}var du=N(null),da=null,hn=null;function Dn(e,t,n){P(du,t._currentValue),t._currentValue=n}function gn(e){e._currentValue=du.current,q(du)}function hu(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function gu(e,t,n,a){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var y=u.child;c=c.firstContext;e:for(;c!==null;){var b=c;c=u;for(var w=0;w<t.length;w++)if(b.context===t[w]){c.lanes|=n,b=c.alternate,b!==null&&(b.lanes|=n),hu(c.return,n,e),a||(y=null);break e}c=b.next}}else if(u.tag===18){if(y=u.return,y===null)throw Error(s(341));y.lanes|=n,c=y.alternate,c!==null&&(c.lanes|=n),hu(y,n,e),y=null}else y=u.child;if(y!==null)y.return=u;else for(y=u;y!==null;){if(y===e){y=null;break}if(u=y.sibling,u!==null){u.return=y.return,y=u;break}y=y.return}u=y}}function Za(e,t,n,a){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var y=u.alternate;if(y===null)throw Error(s(387));if(y=y.memoizedProps,y!==null){var b=u.type;Tt(u.pendingProps.value,y.value)||(e!==null?e.push(b):e=[b])}}else if(u===de.current){if(y=u.alternate,y===null)throw Error(s(387));y.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(vr):e=[vr])}u=u.return}e!==null&&gu(t,e,n,a),t.flags|=262144}function ai(e){for(e=e.firstContext;e!==null;){if(!Tt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ha(e){da=e,hn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Sd(da,e)}function li(e,t){return da===null&&ha(e),Sd(e,t)}function Sd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},hn===null){if(e===null)throw Error(s(308));hn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else hn=hn.next=t;return n}var Tb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Cb=l.unstable_scheduleCallback,_b=l.unstable_NormalPriority,Je={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mu(){return{controller:new Tb,data:new Map,refCount:0}}function Zl(e){e.refCount--,e.refCount===0&&Cb(_b,function(){e.controller.abort()})}var Vl=null,pu=0,Va=0,Ka=null;function jb(e,t){if(Vl===null){var n=Vl=[];pu=0,Va=vc(),Ka={status:"pending",value:void 0,then:function(a){n.push(a)}}}return pu++,t.then(Ed,Ed),t}function Ed(){if(--pu===0&&Vl!==null){Ka!==null&&(Ka.status="fulfilled");var e=Vl;Vl=null,Va=0,Ka=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ob(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var u=0;u<n.length;u++)(0,n[u])(t)},function(u){for(a.status="rejected",a.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),a}var Nd=k.S;k.S=function(e,t){ig=Nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&jb(e,t),Nd!==null&&Nd(e,t)};var ga=N(null);function yu(){var e=ga.current;return e!==null?e:Be.pooledCache}function ri(e,t){t===null?P(ga,ga.current):P(ga,t.pool)}function wd(){var e=yu();return e===null?null:{parent:Je._currentValue,pool:e}}var Qa=Error(s(460)),bu=Error(s(474)),ii=Error(s(542)),si={then:function(){}};function Ad(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Td(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(cn,cn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_d(e),e;default:if(typeof t.status=="string")t.then(cn,cn);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=a}},function(a){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_d(e),e}throw pa=t,Qa}}function ma(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(pa=n,Qa):n}}var pa=null;function Cd(){if(pa===null)throw Error(s(459));var e=pa;return pa=null,e}function _d(e){if(e===Qa||e===ii)throw Error(s(483))}var Ja=null,Kl=0;function ui(e){var t=Kl;return Kl+=1,Ja===null&&(Ja=[]),Td(Ja,e,t)}function Ql(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ci(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function jd(e){function t(j,T){if(e){var M=j.deletions;M===null?(j.deletions=[T],j.flags|=16):M.push(T)}}function n(j,T){if(!e)return null;for(;T!==null;)t(j,T),T=T.sibling;return null}function a(j){for(var T=new Map;j!==null;)j.key!==null?T.set(j.key,j):T.set(j.index,j),j=j.sibling;return T}function u(j,T){return j=fn(j,T),j.index=0,j.sibling=null,j}function c(j,T,M){return j.index=M,e?(M=j.alternate,M!==null?(M=M.index,M<T?(j.flags|=67108866,T):M):(j.flags|=67108866,T)):(j.flags|=1048576,T)}function y(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function b(j,T,M,Z){return T===null||T.tag!==6?(T=iu(M,j.mode,Z),T.return=j,T):(T=u(T,M),T.return=j,T)}function w(j,T,M,Z){var he=M.type;return he===C?X(j,T,M.props.children,Z,M.key):T!==null&&(T.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===R&&ma(he)===T.type)?(T=u(T,M.props),Ql(T,M),T.return=j,T):(T=ti(M.type,M.key,M.props,null,j.mode,Z),Ql(T,M),T.return=j,T)}function z(j,T,M,Z){return T===null||T.tag!==4||T.stateNode.containerInfo!==M.containerInfo||T.stateNode.implementation!==M.implementation?(T=su(M,j.mode,Z),T.return=j,T):(T=u(T,M.children||[]),T.return=j,T)}function X(j,T,M,Z,he){return T===null||T.tag!==7?(T=oa(M,j.mode,Z,he),T.return=j,T):(T=u(T,M),T.return=j,T)}function V(j,T,M){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=iu(""+T,j.mode,M),T.return=j,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case E:return M=ti(T.type,T.key,T.props,null,j.mode,M),Ql(M,T),M.return=j,M;case A:return T=su(T,j.mode,M),T.return=j,T;case R:return T=ma(T),V(j,T,M)}if(W(T)||fe(T))return T=oa(T,j.mode,M,null),T.return=j,T;if(typeof T.then=="function")return V(j,ui(T),M);if(T.$$typeof===O)return V(j,li(j,T),M);ci(j,T)}return null}function B(j,T,M,Z){var he=T!==null?T.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return he!==null?null:b(j,T,""+M,Z);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case E:return M.key===he?w(j,T,M,Z):null;case A:return M.key===he?z(j,T,M,Z):null;case R:return M=ma(M),B(j,T,M,Z)}if(W(M)||fe(M))return he!==null?null:X(j,T,M,Z,null);if(typeof M.then=="function")return B(j,T,ui(M),Z);if(M.$$typeof===O)return B(j,T,li(j,M),Z);ci(j,M)}return null}function G(j,T,M,Z,he){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return j=j.get(M)||null,b(T,j,""+Z,he);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case E:return j=j.get(Z.key===null?M:Z.key)||null,w(T,j,Z,he);case A:return j=j.get(Z.key===null?M:Z.key)||null,z(T,j,Z,he);case R:return Z=ma(Z),G(j,T,M,Z,he)}if(W(Z)||fe(Z))return j=j.get(M)||null,X(T,j,Z,he,null);if(typeof Z.then=="function")return G(j,T,M,ui(Z),he);if(Z.$$typeof===O)return G(j,T,M,li(T,Z),he);ci(T,Z)}return null}function se(j,T,M,Z){for(var he=null,_e=null,oe=T,Se=T=0,Ae=null;oe!==null&&Se<M.length;Se++){oe.index>Se?(Ae=oe,oe=null):Ae=oe.sibling;var je=B(j,oe,M[Se],Z);if(je===null){oe===null&&(oe=Ae);break}e&&oe&&je.alternate===null&&t(j,oe),T=c(je,T,Se),_e===null?he=je:_e.sibling=je,_e=je,oe=Ae}if(Se===M.length)return n(j,oe),Te&&dn(j,Se),he;if(oe===null){for(;Se<M.length;Se++)oe=V(j,M[Se],Z),oe!==null&&(T=c(oe,T,Se),_e===null?he=oe:_e.sibling=oe,_e=oe);return Te&&dn(j,Se),he}for(oe=a(oe);Se<M.length;Se++)Ae=G(oe,j,Se,M[Se],Z),Ae!==null&&(e&&Ae.alternate!==null&&oe.delete(Ae.key===null?Se:Ae.key),T=c(Ae,T,Se),_e===null?he=Ae:_e.sibling=Ae,_e=Ae);return e&&oe.forEach(function(Wn){return t(j,Wn)}),Te&&dn(j,Se),he}function pe(j,T,M,Z){if(M==null)throw Error(s(151));for(var he=null,_e=null,oe=T,Se=T=0,Ae=null,je=M.next();oe!==null&&!je.done;Se++,je=M.next()){oe.index>Se?(Ae=oe,oe=null):Ae=oe.sibling;var Wn=B(j,oe,je.value,Z);if(Wn===null){oe===null&&(oe=Ae);break}e&&oe&&Wn.alternate===null&&t(j,oe),T=c(Wn,T,Se),_e===null?he=Wn:_e.sibling=Wn,_e=Wn,oe=Ae}if(je.done)return n(j,oe),Te&&dn(j,Se),he;if(oe===null){for(;!je.done;Se++,je=M.next())je=V(j,je.value,Z),je!==null&&(T=c(je,T,Se),_e===null?he=je:_e.sibling=je,_e=je);return Te&&dn(j,Se),he}for(oe=a(oe);!je.done;Se++,je=M.next())je=G(oe,j,Se,je.value,Z),je!==null&&(e&&je.alternate!==null&&oe.delete(je.key===null?Se:je.key),T=c(je,T,Se),_e===null?he=je:_e.sibling=je,_e=je);return e&&oe.forEach(function(Y0){return t(j,Y0)}),Te&&dn(j,Se),he}function Le(j,T,M,Z){if(typeof M=="object"&&M!==null&&M.type===C&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case E:e:{for(var he=M.key;T!==null;){if(T.key===he){if(he=M.type,he===C){if(T.tag===7){n(j,T.sibling),Z=u(T,M.props.children),Z.return=j,j=Z;break e}}else if(T.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===R&&ma(he)===T.type){n(j,T.sibling),Z=u(T,M.props),Ql(Z,M),Z.return=j,j=Z;break e}n(j,T);break}else t(j,T);T=T.sibling}M.type===C?(Z=oa(M.props.children,j.mode,Z,M.key),Z.return=j,j=Z):(Z=ti(M.type,M.key,M.props,null,j.mode,Z),Ql(Z,M),Z.return=j,j=Z)}return y(j);case A:e:{for(he=M.key;T!==null;){if(T.key===he)if(T.tag===4&&T.stateNode.containerInfo===M.containerInfo&&T.stateNode.implementation===M.implementation){n(j,T.sibling),Z=u(T,M.children||[]),Z.return=j,j=Z;break e}else{n(j,T);break}else t(j,T);T=T.sibling}Z=su(M,j.mode,Z),Z.return=j,j=Z}return y(j);case R:return M=ma(M),Le(j,T,M,Z)}if(W(M))return se(j,T,M,Z);if(fe(M)){if(he=fe(M),typeof he!="function")throw Error(s(150));return M=he.call(M),pe(j,T,M,Z)}if(typeof M.then=="function")return Le(j,T,ui(M),Z);if(M.$$typeof===O)return Le(j,T,li(j,M),Z);ci(j,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,T!==null&&T.tag===6?(n(j,T.sibling),Z=u(T,M),Z.return=j,j=Z):(n(j,T),Z=iu(M,j.mode,Z),Z.return=j,j=Z),y(j)):n(j,T)}return function(j,T,M,Z){try{Kl=0;var he=Le(j,T,M,Z);return Ja=null,he}catch(oe){if(oe===Qa||oe===ii)throw oe;var _e=Ct(29,oe,null,j.mode);return _e.lanes=Z,_e.return=j,_e}finally{}}}var ya=jd(!0),Od=jd(!1),zn=!1;function vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ln(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Un(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Oe&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=ei(e),hd(e,null,n),t}return Pr(e,a,t,n),ei(e)}function Jl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Sf(e,n)}}function Su(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var y={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?u=c=y:c=c.next=y,n=n.next}while(n!==null);c===null?u=c=t:c=c.next=t}else u=c=t;n={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Eu=!1;function Wl(){if(Eu){var e=Ka;if(e!==null)throw e}}function Pl(e,t,n,a){Eu=!1;var u=e.updateQueue;zn=!1;var c=u.firstBaseUpdate,y=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var w=b,z=w.next;w.next=null,y===null?c=z:y.next=z,y=w;var X=e.alternate;X!==null&&(X=X.updateQueue,b=X.lastBaseUpdate,b!==y&&(b===null?X.firstBaseUpdate=z:b.next=z,X.lastBaseUpdate=w))}if(c!==null){var V=u.baseState;y=0,X=z=w=null,b=c;do{var B=b.lane&-536870913,G=B!==b.lane;if(G?(we&B)===B:(a&B)===B){B!==0&&B===Va&&(Eu=!0),X!==null&&(X=X.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var se=e,pe=b;B=t;var Le=n;switch(pe.tag){case 1:if(se=pe.payload,typeof se=="function"){V=se.call(Le,V,B);break e}V=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=pe.payload,B=typeof se=="function"?se.call(Le,V,B):se,B==null)break e;V=x({},V,B);break e;case 2:zn=!0}}B=b.callback,B!==null&&(e.flags|=64,G&&(e.flags|=8192),G=u.callbacks,G===null?u.callbacks=[B]:G.push(B))}else G={lane:B,tag:b.tag,payload:b.payload,callback:b.callback,next:null},X===null?(z=X=G,w=V):X=X.next=G,y|=B;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;G=b,b=G.next,G.next=null,u.lastBaseUpdate=G,u.shared.pending=null}}while(!0);X===null&&(w=V),u.baseState=w,u.firstBaseUpdate=z,u.lastBaseUpdate=X,c===null&&(u.shared.lanes=0),qn|=y,e.lanes=y,e.memoizedState=V}}function kd(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Rd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)kd(n[e],t)}var Wa=N(null),oi=N(0);function Md(e,t){e=Nn,P(oi,e),P(Wa,t),Nn=e|t.baseLanes}function Nu(){P(oi,Nn),P(Wa,Wa.current)}function wu(){Nn=oi.current,q(Wa),q(oi)}var _t=N(null),Ft=null;function Bn(e){var t=e.alternate;P(Ke,Ke.current&1),P(_t,e),Ft===null&&(t===null||Wa.current!==null||t.memoizedState!==null)&&(Ft=e)}function Au(e){P(Ke,Ke.current),P(_t,e),Ft===null&&(Ft=e)}function Dd(e){e.tag===22?(P(Ke,Ke.current),P(_t,e),Ft===null&&(Ft=e)):Hn()}function Hn(){P(Ke,Ke.current),P(_t,_t.current)}function jt(e){q(_t),Ft===e&&(Ft=null),q(Ke)}var Ke=N(0);function fi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||kc(n)||Rc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mn=0,ve=null,De=null,We=null,di=!1,Pa=!1,ba=!1,hi=0,er=0,el=null,kb=0;function Ze(){throw Error(s(321))}function Tu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tt(e[n],t[n]))return!1;return!0}function Cu(e,t,n,a,u,c){return mn=c,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?yh:qu,ba=!1,c=n(a,u),ba=!1,Pa&&(c=Ld(t,n,a,u)),zd(e),c}function zd(e){k.H=ar;var t=De!==null&&De.next!==null;if(mn=0,We=De=ve=null,di=!1,er=0,el=null,t)throw Error(s(300));e===null||Pe||(e=e.dependencies,e!==null&&ai(e)&&(Pe=!0))}function Ld(e,t,n,a){ve=e;var u=0;do{if(Pa&&(el=null),er=0,Pa=!1,25<=u)throw Error(s(301));if(u+=1,We=De=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}k.H=bh,c=t(n,a)}while(Pa);return c}function Rb(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?tr(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(ve.flags|=1024),t}function _u(){var e=hi!==0;return hi=0,e}function ju(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ou(e){if(di){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}di=!1}mn=0,We=De=ve=null,Pa=!1,er=hi=0,el=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?ve.memoizedState=We=e:We=We.next=e,We}function Qe(){if(De===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=We===null?ve.memoizedState:We.next;if(t!==null)We=t,De=e;else{if(e===null)throw ve.alternate===null?Error(s(467)):Error(s(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},We===null?ve.memoizedState=We=e:We=We.next=e}return We}function gi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function tr(e){var t=er;return er+=1,el===null&&(el=[]),e=Td(el,e,t),t=ve,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?yh:qu),e}function mi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return tr(e);if(e.$$typeof===O)return ct(e)}throw Error(s(438,String(e)))}function ku(e){var t=null,n=ve.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ve.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=gi(),ve.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ie;return t.index++,n}function pn(e,t){return typeof t=="function"?t(e):t}function pi(e){var t=Qe();return Ru(t,De,e)}function Ru(e,t,n){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var u=e.baseQueue,c=a.pending;if(c!==null){if(u!==null){var y=u.next;u.next=c.next,c.next=y}t.baseQueue=u=c,a.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var b=y=null,w=null,z=t,X=!1;do{var V=z.lane&-536870913;if(V!==z.lane?(we&V)===V:(mn&V)===V){var B=z.revertLane;if(B===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),V===Va&&(X=!0);else if((mn&B)===B){z=z.next,B===Va&&(X=!0);continue}else V={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},w===null?(b=w=V,y=c):w=w.next=V,ve.lanes|=B,qn|=B;V=z.action,ba&&n(c,V),c=z.hasEagerState?z.eagerState:n(c,V)}else B={lane:V,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},w===null?(b=w=B,y=c):w=w.next=B,ve.lanes|=V,qn|=V;z=z.next}while(z!==null&&z!==t);if(w===null?y=c:w.next=b,!Tt(c,e.memoizedState)&&(Pe=!0,X&&(n=Ka,n!==null)))throw n;e.memoizedState=c,e.baseState=y,e.baseQueue=w,a.lastRenderedState=c}return u===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Mu(e){var t=Qe(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,u=n.pending,c=t.memoizedState;if(u!==null){n.pending=null;var y=u=u.next;do c=e(c,y.action),y=y.next;while(y!==u);Tt(c,t.memoizedState)||(Pe=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Ud(e,t,n){var a=ve,u=Qe(),c=Te;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var y=!Tt((De||u).memoizedState,n);if(y&&(u.memoizedState=n,Pe=!0),u=u.queue,Lu(Gd.bind(null,a,u,e),[e]),u.getSnapshot!==t||y||We!==null&&We.memoizedState.tag&1){if(a.flags|=2048,tl(9,{destroy:void 0},Hd.bind(null,a,u,n,t),null),Be===null)throw Error(s(349));c||(mn&127)!==0||Bd(a,t,n)}return n}function Bd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t=gi(),ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Hd(e,t,n,a){t.value=n,t.getSnapshot=a,Yd(t)&&qd(e)}function Gd(e,t,n){return n(function(){Yd(t)&&qd(e)})}function Yd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tt(e,n)}catch{return!0}}function qd(e){var t=ca(e,2);t!==null&&St(t,e,2)}function Du(e){var t=gt();if(typeof e=="function"){var n=e;if(e=n(),ba){_n(!0);try{n()}finally{_n(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:e},t}function Id(e,t,n,a){return e.baseState=n,Ru(e,De,typeof a=="function"?a:pn)}function Mb(e,t,n,a,u){if(vi(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){c.listeners.push(y)}};k.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,Xd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Xd(e,t){var n=t.action,a=t.payload,u=e.state;if(t.isTransition){var c=k.T,y={};k.T=y;try{var b=n(u,a),w=k.S;w!==null&&w(y,b),Fd(e,t,b)}catch(z){zu(e,t,z)}finally{c!==null&&y.types!==null&&(c.types=y.types),k.T=c}}else try{c=n(u,a),Fd(e,t,c)}catch(z){zu(e,t,z)}}function Fd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){$d(e,t,a)},function(a){return zu(e,t,a)}):$d(e,t,n)}function $d(e,t,n){t.status="fulfilled",t.value=n,Zd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Xd(e,n)))}function zu(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Zd(t),t=t.next;while(t!==a)}e.action=null}function Zd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Vd(e,t){return t}function Kd(e,t){if(Te){var n=Be.formState;if(n!==null){e:{var a=ve;if(Te){if(Ge){t:{for(var u=Ge,c=Xt;u.nodeType!==8;){if(!c){u=null;break t}if(u=$t(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ge=$t(u.nextSibling),a=u.data==="F!";break e}}Mn(a)}a=!1}a&&(t=n[0])}}return n=gt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vd,lastRenderedState:t},n.queue=a,n=gh.bind(null,ve,a),a.dispatch=n,a=Du(!1),c=Yu.bind(null,ve,!1,a.queue),a=gt(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,n=Mb.bind(null,ve,u,c,n),u.dispatch=n,a.memoizedState=e,[t,n,!1]}function Qd(e){var t=Qe();return Jd(t,De,e)}function Jd(e,t,n){if(t=Ru(e,t,Vd)[0],e=pi(pn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=tr(t)}catch(y){throw y===Qa?ii:y}else a=t;t=Qe();var u=t.queue,c=u.dispatch;return n!==t.memoizedState&&(ve.flags|=2048,tl(9,{destroy:void 0},Db.bind(null,u,n),null)),[a,c,e]}function Db(e,t){e.action=t}function Wd(e){var t=Qe(),n=De;if(n!==null)return Jd(t,n,e);Qe(),t=t.memoizedState,n=Qe();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function tl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ve.updateQueue,t===null&&(t=gi(),ve.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Pd(){return Qe().memoizedState}function yi(e,t,n,a){var u=gt();ve.flags|=e,u.memoizedState=tl(1|t,{destroy:void 0},n,a===void 0?null:a)}function bi(e,t,n,a){var u=Qe();a=a===void 0?null:a;var c=u.memoizedState.inst;De!==null&&a!==null&&Tu(a,De.memoizedState.deps)?u.memoizedState=tl(t,c,n,a):(ve.flags|=e,u.memoizedState=tl(1|t,c,n,a))}function eh(e,t){yi(8390656,8,e,t)}function Lu(e,t){bi(2048,8,e,t)}function zb(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=gi(),ve.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function th(e){var t=Qe().memoizedState;return zb({ref:t,nextImpl:e}),function(){if((Oe&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function nh(e,t){return bi(4,2,e,t)}function ah(e,t){return bi(4,4,e,t)}function lh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function rh(e,t,n){n=n!=null?n.concat([e]):null,bi(4,4,lh.bind(null,t,e),n)}function Uu(){}function ih(e,t){var n=Qe();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Tu(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function sh(e,t){var n=Qe();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Tu(t,a[1]))return a[0];if(a=e(),ba){_n(!0);try{e()}finally{_n(!1)}}return n.memoizedState=[a,t],a}function Bu(e,t,n){return n===void 0||(mn&1073741824)!==0&&(we&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ug(),ve.lanes|=e,qn|=e,n)}function uh(e,t,n,a){return Tt(n,t)?n:Wa.current!==null?(e=Bu(e,n,a),Tt(e,t)||(Pe=!0),e):(mn&42)===0||(mn&1073741824)!==0&&(we&261930)===0?(Pe=!0,e.memoizedState=n):(e=ug(),ve.lanes|=e,qn|=e,t)}function ch(e,t,n,a,u){var c=L.p;L.p=c!==0&&8>c?c:8;var y=k.T,b={};k.T=b,Yu(e,!1,t,n);try{var w=u(),z=k.S;if(z!==null&&z(b,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var X=Ob(w,a);nr(e,t,X,Rt(e))}else nr(e,t,a,Rt(e))}catch(V){nr(e,t,{then:function(){},status:"rejected",reason:V},Rt())}finally{L.p=c,y!==null&&b.types!==null&&(y.types=b.types),k.T=y}}function Lb(){}function Hu(e,t,n,a){if(e.tag!==5)throw Error(s(476));var u=oh(e).queue;ch(e,u,t,le,n===null?Lb:function(){return fh(e),n(a)})}function oh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function fh(e){var t=oh(e);t.next===null&&(t=e.alternate.memoizedState),nr(e,t.next.queue,{},Rt())}function Gu(){return ct(vr)}function dh(){return Qe().memoizedState}function hh(){return Qe().memoizedState}function Ub(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Rt();e=Ln(n);var a=Un(t,e,n);a!==null&&(St(a,t,n),Jl(a,t,n)),t={cache:mu()},e.payload=t;return}t=t.return}}function Bb(e,t,n){var a=Rt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},vi(e)?mh(t,n):(n=lu(e,t,n,a),n!==null&&(St(n,e,a),ph(n,t,a)))}function gh(e,t,n){var a=Rt();nr(e,t,n,a)}function nr(e,t,n,a){var u={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(vi(e))mh(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var y=t.lastRenderedState,b=c(y,n);if(u.hasEagerState=!0,u.eagerState=b,Tt(b,y))return Pr(e,t,u,0),Be===null&&Wr(),!1}catch{}finally{}if(n=lu(e,t,u,a),n!==null)return St(n,e,a),ph(n,t,a),!0}return!1}function Yu(e,t,n,a){if(a={lane:2,revertLane:vc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},vi(e)){if(t)throw Error(s(479))}else t=lu(e,n,a,2),t!==null&&St(t,e,2)}function vi(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function mh(e,t){Pa=di=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ph(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Sf(e,n)}}var ar={readContext:ct,use:mi,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze};ar.useEffectEvent=Ze;var yh={readContext:ct,use:mi,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:eh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,yi(4194308,4,lh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yi(4194308,4,e,t)},useInsertionEffect:function(e,t){yi(4,2,e,t)},useMemo:function(e,t){var n=gt();t=t===void 0?null:t;var a=e();if(ba){_n(!0);try{e()}finally{_n(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=gt();if(n!==void 0){var u=n(t);if(ba){_n(!0);try{n(t)}finally{_n(!1)}}}else u=t;return a.memoizedState=a.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},a.queue=e,e=e.dispatch=Bb.bind(null,ve,e),[a.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=Du(e);var t=e.queue,n=gh.bind(null,ve,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Uu,useDeferredValue:function(e,t){var n=gt();return Bu(n,e,t)},useTransition:function(){var e=Du(!1);return e=ch.bind(null,ve,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ve,u=gt();if(Te){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Be===null)throw Error(s(349));(we&127)!==0||Bd(a,t,n)}u.memoizedState=n;var c={value:n,getSnapshot:t};return u.queue=c,eh(Gd.bind(null,a,c,e),[e]),a.flags|=2048,tl(9,{destroy:void 0},Hd.bind(null,a,c,n,t),null),n},useId:function(){var e=gt(),t=Be.identifierPrefix;if(Te){var n=nn,a=tn;n=(a&~(1<<32-At(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=hi++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=kb++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Gu,useFormState:Kd,useActionState:Kd,useOptimistic:function(e){var t=gt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Yu.bind(null,ve,!0,n),n.dispatch=t,[e,t]},useMemoCache:ku,useCacheRefresh:function(){return gt().memoizedState=Ub.bind(null,ve)},useEffectEvent:function(e){var t=gt(),n={impl:e};return t.memoizedState=n,function(){if((Oe&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},qu={readContext:ct,use:mi,useCallback:ih,useContext:ct,useEffect:Lu,useImperativeHandle:rh,useInsertionEffect:nh,useLayoutEffect:ah,useMemo:sh,useReducer:pi,useRef:Pd,useState:function(){return pi(pn)},useDebugValue:Uu,useDeferredValue:function(e,t){var n=Qe();return uh(n,De.memoizedState,e,t)},useTransition:function(){var e=pi(pn)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:tr(e),t]},useSyncExternalStore:Ud,useId:dh,useHostTransitionStatus:Gu,useFormState:Qd,useActionState:Qd,useOptimistic:function(e,t){var n=Qe();return Id(n,De,e,t)},useMemoCache:ku,useCacheRefresh:hh};qu.useEffectEvent=th;var bh={readContext:ct,use:mi,useCallback:ih,useContext:ct,useEffect:Lu,useImperativeHandle:rh,useInsertionEffect:nh,useLayoutEffect:ah,useMemo:sh,useReducer:Mu,useRef:Pd,useState:function(){return Mu(pn)},useDebugValue:Uu,useDeferredValue:function(e,t){var n=Qe();return De===null?Bu(n,e,t):uh(n,De.memoizedState,e,t)},useTransition:function(){var e=Mu(pn)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:tr(e),t]},useSyncExternalStore:Ud,useId:dh,useHostTransitionStatus:Gu,useFormState:Wd,useActionState:Wd,useOptimistic:function(e,t){var n=Qe();return De!==null?Id(n,De,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ku,useCacheRefresh:hh};bh.useEffectEvent=th;function Iu(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:x({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xu={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Rt(),u=Ln(a);u.payload=t,n!=null&&(u.callback=n),t=Un(e,u,a),t!==null&&(St(t,e,a),Jl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Rt(),u=Ln(a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Un(e,u,a),t!==null&&(St(t,e,a),Jl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Rt(),a=Ln(n);a.tag=2,t!=null&&(a.callback=t),t=Un(e,a,n),t!==null&&(St(t,e,n),Jl(t,e,n))}};function vh(e,t,n,a,u,c,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,y):t.prototype&&t.prototype.isPureReactComponent?!Il(n,a)||!Il(u,c):!0}function xh(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Xu.enqueueReplaceState(t,t.state,null)}function va(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=x({},n));for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n}function Sh(e){Jr(e)}function Eh(e){console.error(e)}function Nh(e){Jr(e)}function xi(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function wh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Fu(e,t,n){return n=Ln(n),n.tag=3,n.payload={element:null},n.callback=function(){xi(e,t)},n}function Ah(e){return e=Ln(e),e.tag=3,e}function Th(e,t,n,a){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var c=a.value;e.payload=function(){return u(c)},e.callback=function(){wh(t,n,a)}}var y=n.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){wh(t,n,a),typeof u!="function"&&(In===null?In=new Set([this]):In.add(this));var b=a.stack;this.componentDidCatch(a.value,{componentStack:b!==null?b:""})})}function Hb(e,t,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Za(t,n,u,!0),n=_t.current,n!==null){switch(n.tag){case 31:case 13:return Ft===null?Ri():n.alternate===null&&Ve===0&&(Ve=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===si?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),pc(e,a,u)),!1;case 22:return n.flags|=65536,a===si?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),pc(e,a,u)),!1}throw Error(s(435,n.tag))}return pc(e,a,u),Ri(),!1}if(Te)return t=_t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==ou&&(e=Error(s(422),{cause:a}),$l(Yt(e,n)))):(a!==ou&&(t=Error(s(423),{cause:a}),$l(Yt(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=Yt(a,n),u=Fu(e.stateNode,a,u),Su(e,u),Ve!==4&&(Ve=2)),!1;var c=Error(s(520),{cause:a});if(c=Yt(c,n),fr===null?fr=[c]:fr.push(c),Ve!==4&&(Ve=2),t===null)return!0;a=Yt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=u&-u,n.lanes|=e,e=Fu(n.stateNode,a,e),Su(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(In===null||!In.has(c))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Ah(u),Th(u,e,n,a),Su(n,u),!1}n=n.return}while(n!==null);return!1}var $u=Error(s(461)),Pe=!1;function ot(e,t,n,a){t.child=e===null?Od(t,null,n,a):ya(t,e.child,n,a)}function Ch(e,t,n,a,u){n=n.render;var c=t.ref;if("ref"in a){var y={};for(var b in a)b!=="ref"&&(y[b]=a[b])}else y=a;return ha(t),a=Cu(e,t,n,y,c,u),b=_u(),e!==null&&!Pe?(ju(e,t,u),yn(e,t,u)):(Te&&b&&uu(t),t.flags|=1,ot(e,t,a,u),t.child)}function _h(e,t,n,a,u){if(e===null){var c=n.type;return typeof c=="function"&&!ru(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,jh(e,t,c,a,u)):(e=ti(n.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!ec(e,u)){var y=c.memoizedProps;if(n=n.compare,n=n!==null?n:Il,n(y,a)&&e.ref===t.ref)return yn(e,t,u)}return t.flags|=1,e=fn(c,a),e.ref=t.ref,e.return=t,t.child=e}function jh(e,t,n,a,u){if(e!==null){var c=e.memoizedProps;if(Il(c,a)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=a=c,ec(e,u))(e.flags&131072)!==0&&(Pe=!0);else return t.lanes=e.lanes,yn(e,t,u)}return Zu(e,t,n,a,u)}function Oh(e,t,n,a){var u=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~c}else a=0,t.child=null;return kh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ri(t,c!==null?c.cachePool:null),c!==null?Md(t,c):Nu(),Dd(t);else return a=t.lanes=536870912,kh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(ri(t,c.cachePool),Md(t,c),Hn(),t.memoizedState=null):(e!==null&&ri(t,null),Nu(),Hn());return ot(e,t,u,n),t.child}function lr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function kh(e,t,n,a,u){var c=yu();return c=c===null?null:{parent:Je._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&ri(t,null),Nu(),Dd(t),e!==null&&Za(e,t,a,!0),t.childLanes=u,null}function Si(e,t){return t=Ni({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Rh(e,t,n){return ya(t,e.child,null,n),e=Si(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function Gb(e,t,n){var a=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Te){if(a.mode==="hidden")return e=Si(t,a),t.lanes=536870912,lr(null,e);if(Au(t),(e=Ge)?(e=Xg(e,Xt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kn!==null?{id:tn,overflow:nn}:null,retryLane:536870912,hydrationErrors:null},n=md(e),n.return=t,t.child=n,ut=t,Ge=null)):e=null,e===null)throw Mn(t);return t.lanes=536870912,null}return Si(t,a)}var c=e.memoizedState;if(c!==null){var y=c.dehydrated;if(Au(t),u)if(t.flags&256)t.flags&=-257,t=Rh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Pe||Za(e,t,n,!1),u=(n&e.childLanes)!==0,Pe||u){if(a=Be,a!==null&&(y=Ef(a,n),y!==0&&y!==c.retryLane))throw c.retryLane=y,ca(e,y),St(a,e,y),$u;Ri(),t=Rh(e,t,n)}else e=c.treeContext,Ge=$t(y.nextSibling),ut=t,Te=!0,Rn=null,Xt=!1,e!==null&&bd(t,e),t=Si(t,a),t.flags|=4096;return t}return e=fn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ei(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Zu(e,t,n,a,u){return ha(t),n=Cu(e,t,n,a,void 0,u),a=_u(),e!==null&&!Pe?(ju(e,t,u),yn(e,t,u)):(Te&&a&&uu(t),t.flags|=1,ot(e,t,n,u),t.child)}function Mh(e,t,n,a,u,c){return ha(t),t.updateQueue=null,n=Ld(t,a,n,u),zd(e),a=_u(),e!==null&&!Pe?(ju(e,t,c),yn(e,t,c)):(Te&&a&&uu(t),t.flags|=1,ot(e,t,n,c),t.child)}function Dh(e,t,n,a,u){if(ha(t),t.stateNode===null){var c=Ia,y=n.contextType;typeof y=="object"&&y!==null&&(c=ct(y)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Xu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},vu(t),y=n.contextType,c.context=typeof y=="object"&&y!==null?ct(y):Ia,c.state=t.memoizedState,y=n.getDerivedStateFromProps,typeof y=="function"&&(Iu(t,n,y,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(y=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),y!==c.state&&Xu.enqueueReplaceState(c,c.state,null),Pl(t,a,c,u),Wl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var b=t.memoizedProps,w=va(n,b);c.props=w;var z=c.context,X=n.contextType;y=Ia,typeof X=="object"&&X!==null&&(y=ct(X));var V=n.getDerivedStateFromProps;X=typeof V=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,X||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||z!==y)&&xh(t,c,a,y),zn=!1;var B=t.memoizedState;c.state=B,Pl(t,a,c,u),Wl(),z=t.memoizedState,b||B!==z||zn?(typeof V=="function"&&(Iu(t,n,V,a),z=t.memoizedState),(w=zn||vh(t,n,w,a,B,z,y))?(X||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=z),c.props=a,c.state=z,c.context=y,a=w):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,xu(e,t),y=t.memoizedProps,X=va(n,y),c.props=X,V=t.pendingProps,B=c.context,z=n.contextType,w=Ia,typeof z=="object"&&z!==null&&(w=ct(z)),b=n.getDerivedStateFromProps,(z=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y!==V||B!==w)&&xh(t,c,a,w),zn=!1,B=t.memoizedState,c.state=B,Pl(t,a,c,u),Wl();var G=t.memoizedState;y!==V||B!==G||zn||e!==null&&e.dependencies!==null&&ai(e.dependencies)?(typeof b=="function"&&(Iu(t,n,b,a),G=t.memoizedState),(X=zn||vh(t,n,X,a,B,G,w)||e!==null&&e.dependencies!==null&&ai(e.dependencies))?(z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,G,w),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,G,w)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=G),c.props=a,c.state=G,c.context=w,a=X):(typeof c.componentDidUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,Ei(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=ya(t,e.child,null,u),t.child=ya(t,null,n,u)):ot(e,t,n,u),t.memoizedState=c.state,e=t.child):e=yn(e,t,u),e}function zh(e,t,n,a){return fa(),t.flags|=256,ot(e,t,n,a),t.child}var Vu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ku(e){return{baseLanes:e,cachePool:wd()}}function Qu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=kt),e}function Lh(e,t,n){var a=t.pendingProps,u=!1,c=(t.flags&128)!==0,y;if((y=c)||(y=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),y&&(u=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Te){if(u?Bn(t):Hn(),(e=Ge)?(e=Xg(e,Xt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kn!==null?{id:tn,overflow:nn}:null,retryLane:536870912,hydrationErrors:null},n=md(e),n.return=t,t.child=n,ut=t,Ge=null)):e=null,e===null)throw Mn(t);return Rc(e)?t.lanes=32:t.lanes=536870912,null}var b=a.children;return a=a.fallback,u?(Hn(),u=t.mode,b=Ni({mode:"hidden",children:b},u),a=oa(a,u,n,null),b.return=t,a.return=t,b.sibling=a,t.child=b,a=t.child,a.memoizedState=Ku(n),a.childLanes=Qu(e,y,n),t.memoizedState=Vu,lr(null,a)):(Bn(t),Ju(t,b))}var w=e.memoizedState;if(w!==null&&(b=w.dehydrated,b!==null)){if(c)t.flags&256?(Bn(t),t.flags&=-257,t=Wu(e,t,n)):t.memoizedState!==null?(Hn(),t.child=e.child,t.flags|=128,t=null):(Hn(),b=a.fallback,u=t.mode,a=Ni({mode:"visible",children:a.children},u),b=oa(b,u,n,null),b.flags|=2,a.return=t,b.return=t,a.sibling=b,t.child=a,ya(t,e.child,null,n),a=t.child,a.memoizedState=Ku(n),a.childLanes=Qu(e,y,n),t.memoizedState=Vu,t=lr(null,a));else if(Bn(t),Rc(b)){if(y=b.nextSibling&&b.nextSibling.dataset,y)var z=y.dgst;y=z,a=Error(s(419)),a.stack="",a.digest=y,$l({value:a,source:null,stack:null}),t=Wu(e,t,n)}else if(Pe||Za(e,t,n,!1),y=(n&e.childLanes)!==0,Pe||y){if(y=Be,y!==null&&(a=Ef(y,n),a!==0&&a!==w.retryLane))throw w.retryLane=a,ca(e,a),St(y,e,a),$u;kc(b)||Ri(),t=Wu(e,t,n)}else kc(b)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Ge=$t(b.nextSibling),ut=t,Te=!0,Rn=null,Xt=!1,e!==null&&bd(t,e),t=Ju(t,a.children),t.flags|=4096);return t}return u?(Hn(),b=a.fallback,u=t.mode,w=e.child,z=w.sibling,a=fn(w,{mode:"hidden",children:a.children}),a.subtreeFlags=w.subtreeFlags&65011712,z!==null?b=fn(z,b):(b=oa(b,u,n,null),b.flags|=2),b.return=t,a.return=t,a.sibling=b,t.child=a,lr(null,a),a=t.child,b=e.child.memoizedState,b===null?b=Ku(n):(u=b.cachePool,u!==null?(w=Je._currentValue,u=u.parent!==w?{parent:w,pool:w}:u):u=wd(),b={baseLanes:b.baseLanes|n,cachePool:u}),a.memoizedState=b,a.childLanes=Qu(e,y,n),t.memoizedState=Vu,lr(e.child,a)):(Bn(t),n=e.child,e=n.sibling,n=fn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=n,t.memoizedState=null,n)}function Ju(e,t){return t=Ni({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ni(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function Wu(e,t,n){return ya(t,e.child,null,n),e=Ju(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Uh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),hu(e.return,t,n)}function Pu(e,t,n,a,u,c){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u,treeForkCount:c}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=a,y.tail=n,y.tailMode=u,y.treeForkCount=c)}function Bh(e,t,n){var a=t.pendingProps,u=a.revealOrder,c=a.tail;a=a.children;var y=Ke.current,b=(y&2)!==0;if(b?(y=y&1|2,t.flags|=128):y&=1,P(Ke,y),ot(e,t,a,n),a=Te?Fl:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Uh(e,n,t);else if(e.tag===19)Uh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&fi(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),Pu(t,!1,u,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&fi(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}Pu(t,!0,n,null,c,a);break;case"together":Pu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function yn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Za(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=fn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ec(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ai(e)))}function Yb(e,t,n){switch(t.tag){case 3:Ue(t,t.stateNode.containerInfo),Dn(t,Je,e.memoizedState.cache),fa();break;case 27:case 5:Ce(t);break;case 4:Ue(t,t.stateNode.containerInfo);break;case 10:Dn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Au(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Bn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Lh(e,t,n):(Bn(t),e=yn(e,t,n),e!==null?e.sibling:null);Bn(t);break;case 19:var u=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Za(e,t,n,!1),a=(n&t.childLanes)!==0),u){if(a)return Bh(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),P(Ke,Ke.current),a)break;return null;case 22:return t.lanes=0,Oh(e,t,n,t.pendingProps);case 24:Dn(t,Je,e.memoizedState.cache)}return yn(e,t,n)}function Hh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pe=!0;else{if(!ec(e,n)&&(t.flags&128)===0)return Pe=!1,Yb(e,t,n);Pe=(e.flags&131072)!==0}else Pe=!1,Te&&(t.flags&1048576)!==0&&yd(t,Fl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ma(t.elementType),t.type=e,typeof e=="function")ru(e)?(a=va(e,a),t.tag=1,t=Dh(null,t,e,a,n)):(t.tag=0,t=Zu(null,t,e,a,n));else{if(e!=null){var u=e.$$typeof;if(u===$){t.tag=11,t=Ch(null,t,e,a,n);break e}else if(u===H){t.tag=14,t=_h(null,t,e,a,n);break e}}throw t=ee(e)||e,Error(s(306,t,""))}}return t;case 0:return Zu(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,u=va(a,t.pendingProps),Dh(e,t,a,u,n);case 3:e:{if(Ue(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var c=t.memoizedState;u=c.element,xu(e,t),Pl(t,a,null,n);var y=t.memoizedState;if(a=y.cache,Dn(t,Je,a),a!==c.cache&&gu(t,[Je],n,!0),Wl(),a=y.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=zh(e,t,a,n);break e}else if(a!==u){u=Yt(Error(s(424)),t),$l(u),t=zh(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ge=$t(e.firstChild),ut=t,Te=!0,Rn=null,Xt=!0,n=Od(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(fa(),a===u){t=yn(e,t,n);break e}ot(e,t,a,n)}t=t.child}return t;case 26:return Ei(e,t),e===null?(n=Qg(t.type,null,t.pendingProps,null))?t.memoizedState=n:Te||(n=t.type,e=t.pendingProps,a=Hi(ae.current).createElement(n),a[st]=t,a[mt]=e,ft(a,n,e),at(a),t.stateNode=a):t.memoizedState=Qg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ce(t),e===null&&Te&&(a=t.stateNode=Zg(t.type,t.pendingProps,ae.current),ut=t,Xt=!0,u=Ge,Zn(t.type)?(Mc=u,Ge=$t(a.firstChild)):Ge=u),ot(e,t,t.pendingProps.children,n),Ei(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Te&&((u=a=Ge)&&(a=y0(a,t.type,t.pendingProps,Xt),a!==null?(t.stateNode=a,ut=t,Ge=$t(a.firstChild),Xt=!1,u=!0):u=!1),u||Mn(t)),Ce(t),u=t.type,c=t.pendingProps,y=e!==null?e.memoizedProps:null,a=c.children,_c(u,c)?a=null:y!==null&&_c(u,y)&&(t.flags|=32),t.memoizedState!==null&&(u=Cu(e,t,Rb,null,null,n),vr._currentValue=u),Ei(e,t),ot(e,t,a,n),t.child;case 6:return e===null&&Te&&((e=n=Ge)&&(n=b0(n,t.pendingProps,Xt),n!==null?(t.stateNode=n,ut=t,Ge=null,e=!0):e=!1),e||Mn(t)),null;case 13:return Lh(e,t,n);case 4:return Ue(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ya(t,null,a,n):ot(e,t,a,n),t.child;case 11:return Ch(e,t,t.type,t.pendingProps,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Dn(t,t.type,a.value),ot(e,t,a.children,n),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,ha(t),u=ct(u),a=a(u),t.flags|=1,ot(e,t,a,n),t.child;case 14:return _h(e,t,t.type,t.pendingProps,n);case 15:return jh(e,t,t.type,t.pendingProps,n);case 19:return Bh(e,t,n);case 31:return Gb(e,t,n);case 22:return Oh(e,t,n,t.pendingProps);case 24:return ha(t),a=ct(Je),e===null?(u=yu(),u===null&&(u=Be,c=mu(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=n),u=c),t.memoizedState={parent:a,cache:u},vu(t),Dn(t,Je,u)):((e.lanes&n)!==0&&(xu(e,t),Pl(t,null,null,n),Wl()),u=e.memoizedState,c=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Dn(t,Je,a)):(a=c.cache,Dn(t,Je,a),a!==u.cache&&gu(t,[Je],n,!0))),ot(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function bn(e){e.flags|=4}function tc(e,t,n,a,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(dg())e.flags|=8192;else throw pa=si,bu}else e.flags&=-16777217}function Gh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!tm(t))if(dg())e.flags|=8192;else throw pa=si,bu}function wi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?vf():536870912,e.lanes|=t,rl|=t)}function rr(e,t){if(!Te)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function qb(e,t,n){var a=t.pendingProps;switch(cu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),gn(Je),me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&($a(t)?bn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,fu())),Ye(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(bn(t),c!==null?(Ye(t),Gh(t,c)):(Ye(t),tc(t,u,null,a,n))):c?c!==e.memoizedState?(bn(t),Ye(t),Gh(t,c)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&bn(t),Ye(t),tc(t,u,e,a,n)),null;case 27:if(Xe(t),n=ae.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&bn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ye(t),null}e=J.current,$a(t)?vd(t):(e=Zg(u,a,n),t.stateNode=e,bn(t))}return Ye(t),null;case 5:if(Xe(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&bn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ye(t),null}if(c=J.current,$a(t))vd(t);else{var y=Hi(ae.current);switch(c){case 1:c=y.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=y.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=y.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?y.createElement("select",{is:a.is}):y.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?y.createElement(u,{is:a.is}):y.createElement(u)}}c[st]=t,c[mt]=a;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)c.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=c;e:switch(ft(c,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&bn(t)}}return Ye(t),tc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&bn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ae.current,$a(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,u=ut,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Lg(e.nodeValue,n)),e||Mn(t,!0)}else e=Hi(e).createTextNode(a),e[st]=t,t.stateNode=e}return Ye(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=$a(t),n!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[st]=t}else fa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else n=fu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ye(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=$a(t),a!==null&&a.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[st]=t}else fa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),u=!1}else u=fu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==u&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),wi(t,t.updateQueue),Ye(t),null);case 4:return me(),e===null&&Nc(t.stateNode.containerInfo),Ye(t),null;case 10:return gn(t.type),Ye(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return Ye(t),null;if(u=(t.flags&128)!==0,c=a.rendering,c===null)if(u)rr(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=fi(e),c!==null){for(t.flags|=128,rr(a,!1),e=c.updateQueue,t.updateQueue=e,wi(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)gd(n,e),n=n.sibling;return P(Ke,Ke.current&1|2),Te&&dn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Nt()>ji&&(t.flags|=128,u=!0,rr(a,!1),t.lanes=4194304)}else{if(!u)if(e=fi(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,wi(t,e),rr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Te)return Ye(t),null}else 2*Nt()-a.renderingStartTime>ji&&n!==536870912&&(t.flags|=128,u=!0,rr(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Nt(),e.sibling=null,n=Ke.current,P(Ke,u?n&1|2:n&1),Te&&dn(t,a.treeForkCount),e):(Ye(t),null);case 22:case 23:return jt(t),wu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),n=t.updateQueue,n!==null&&wi(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&q(ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),gn(Je),Ye(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Ib(e,t){switch(cu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gn(Je),me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Xe(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(s(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return me(),null;case 10:return gn(t.type),null;case 22:case 23:return jt(t),wu(),e!==null&&q(ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return gn(Je),null;case 25:return null;default:return null}}function Yh(e,t){switch(cu(t),t.tag){case 3:gn(Je),me();break;case 26:case 27:case 5:Xe(t);break;case 4:me();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:q(Ke);break;case 10:gn(t.type);break;case 22:case 23:jt(t),wu(),e!==null&&q(ga);break;case 24:gn(Je)}}function ir(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&e)===e){a=void 0;var c=n.create,y=n.inst;a=c(),y.destroy=a}n=n.next}while(n!==u)}}catch(b){Re(t,t.return,b)}}function Gn(e,t,n){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var c=u.next;a=c;do{if((a.tag&e)===e){var y=a.inst,b=y.destroy;if(b!==void 0){y.destroy=void 0,u=t;var w=n,z=b;try{z()}catch(X){Re(u,w,X)}}}a=a.next}while(a!==c)}}catch(X){Re(t,t.return,X)}}function qh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Rd(t,n)}catch(a){Re(e,e.return,a)}}}function Ih(e,t,n){n.props=va(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Re(e,t,a)}}function sr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(u){Re(e,t,u)}}function an(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Re(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Re(e,t,u)}else n.current=null}function Xh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(u){Re(e,e.return,u)}}function nc(e,t,n){try{var a=e.stateNode;f0(a,e.type,n,t),a[mt]=t}catch(u){Re(e,e.return,u)}}function Fh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zn(e.type)||e.tag===4}function ac(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cn));else if(a!==4&&(a===27&&Zn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(lc(e,t,n),e=e.sibling;e!==null;)lc(e,t,n),e=e.sibling}function Ai(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Zn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ai(e,t,n),e=e.sibling;e!==null;)Ai(e,t,n),e=e.sibling}function $h(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);ft(t,a,n),t[st]=e,t[mt]=n}catch(c){Re(e,e.return,c)}}var vn=!1,et=!1,rc=!1,Zh=typeof WeakSet=="function"?WeakSet:Set,lt=null;function Xb(e,t){if(e=e.containerInfo,Tc=$i,e=rd(e),Ws(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var u=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var y=0,b=-1,w=-1,z=0,X=0,V=e,B=null;t:for(;;){for(var G;V!==n||u!==0&&V.nodeType!==3||(b=y+u),V!==c||a!==0&&V.nodeType!==3||(w=y+a),V.nodeType===3&&(y+=V.nodeValue.length),(G=V.firstChild)!==null;)B=V,V=G;for(;;){if(V===e)break t;if(B===n&&++z===u&&(b=y),B===c&&++X===a&&(w=y),(G=V.nextSibling)!==null)break;V=B,B=V.parentNode}V=G}n=b===-1||w===-1?null:{start:b,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(Cc={focusedElem:e,selectionRange:n},$i=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){switch(t=lt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)u=e[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,u=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var se=va(n.type,u);e=a.getSnapshotBeforeUpdate(se,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(pe){Re(n,n.return,pe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Oc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Oc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}}function Vh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Sn(e,n),a&4&&ir(5,n);break;case 1:if(Sn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(y){Re(n,n.return,y)}else{var u=va(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Re(n,n.return,y)}}a&64&&qh(n),a&512&&sr(n,n.return);break;case 3:if(Sn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Rd(e,t)}catch(y){Re(n,n.return,y)}}break;case 27:t===null&&a&4&&$h(n);case 26:case 5:Sn(e,n),t===null&&a&4&&Xh(n),a&512&&sr(n,n.return);break;case 12:Sn(e,n);break;case 31:Sn(e,n),a&4&&Jh(e,n);break;case 13:Sn(e,n),a&4&&Wh(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Pb.bind(null,n),v0(e,n))));break;case 22:if(a=n.memoizedState!==null||vn,!a){t=t!==null&&t.memoizedState!==null||et,u=vn;var c=et;vn=a,(et=t)&&!c?En(e,n,(n.subtreeFlags&8772)!==0):Sn(e,n),vn=u,et=c}break;case 30:break;default:Sn(e,n)}}function Kh(e){var t=e.alternate;t!==null&&(e.alternate=null,Kh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&zs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ie=null,yt=!1;function xn(e,t,n){for(n=n.child;n!==null;)Qh(e,t,n),n=n.sibling}function Qh(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(kl,n)}catch{}switch(n.tag){case 26:et||an(n,t),xn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:et||an(n,t);var a=Ie,u=yt;Zn(n.type)&&(Ie=n.stateNode,yt=!1),xn(e,t,n),pr(n.stateNode),Ie=a,yt=u;break;case 5:et||an(n,t);case 6:if(a=Ie,u=yt,Ie=null,xn(e,t,n),Ie=a,yt=u,Ie!==null)if(yt)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(n.stateNode)}catch(c){Re(n,t,c)}else try{Ie.removeChild(n.stateNode)}catch(c){Re(n,t,c)}break;case 18:Ie!==null&&(yt?(e=Ie,qg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),hl(e)):qg(Ie,n.stateNode));break;case 4:a=Ie,u=yt,Ie=n.stateNode.containerInfo,yt=!0,xn(e,t,n),Ie=a,yt=u;break;case 0:case 11:case 14:case 15:Gn(2,n,t),et||Gn(4,n,t),xn(e,t,n);break;case 1:et||(an(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Ih(n,t,a)),xn(e,t,n);break;case 21:xn(e,t,n);break;case 22:et=(a=et)||n.memoizedState!==null,xn(e,t,n),et=a;break;default:xn(e,t,n)}}function Jh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{hl(e)}catch(n){Re(t,t.return,n)}}}function Wh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{hl(e)}catch(n){Re(t,t.return,n)}}function Fb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zh),t;default:throw Error(s(435,e.tag))}}function Ti(e,t){var n=Fb(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var u=e0.bind(null,e,a);a.then(u,u)}})}function bt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],c=e,y=t,b=y;e:for(;b!==null;){switch(b.tag){case 27:if(Zn(b.type)){Ie=b.stateNode,yt=!1;break e}break;case 5:Ie=b.stateNode,yt=!1;break e;case 3:case 4:Ie=b.stateNode.containerInfo,yt=!0;break e}b=b.return}if(Ie===null)throw Error(s(160));Qh(c,y,u),Ie=null,yt=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ph(t,e),t=t.sibling}var Pt=null;function Ph(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bt(t,e),vt(e),a&4&&(Gn(3,e,e.return),ir(3,e),Gn(5,e,e.return));break;case 1:bt(t,e),vt(e),a&512&&(et||n===null||an(n,n.return)),a&64&&vn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var u=Pt;if(bt(t,e),vt(e),a&512&&(et||n===null||an(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,u=u.ownerDocument||u;t:switch(a){case"title":c=u.getElementsByTagName("title")[0],(!c||c[Dl]||c[st]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(a),u.head.insertBefore(c,u.querySelector("head > title"))),ft(c,a,n),c[st]=e,at(c),a=c;break e;case"link":var y=Pg("link","href",u).get(a+(n.href||""));if(y){for(var b=0;b<y.length;b++)if(c=y[b],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){y.splice(b,1);break t}}c=u.createElement(a),ft(c,a,n),u.head.appendChild(c);break;case"meta":if(y=Pg("meta","content",u).get(a+(n.content||""))){for(b=0;b<y.length;b++)if(c=y[b],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){y.splice(b,1);break t}}c=u.createElement(a),ft(c,a,n),u.head.appendChild(c);break;default:throw Error(s(468,a))}c[st]=e,at(c),a=c}e.stateNode=a}else em(u,e.type,e.stateNode);else e.stateNode=Wg(u,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?em(u,e.type,e.stateNode):Wg(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&nc(e,e.memoizedProps,n.memoizedProps)}break;case 27:bt(t,e),vt(e),a&512&&(et||n===null||an(n,n.return)),n!==null&&a&4&&nc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(bt(t,e),vt(e),a&512&&(et||n===null||an(n,n.return)),e.flags&32){u=e.stateNode;try{La(u,"")}catch(se){Re(e,e.return,se)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,nc(e,u,n!==null?n.memoizedProps:u)),a&1024&&(rc=!0);break;case 6:if(bt(t,e),vt(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(se){Re(e,e.return,se)}}break;case 3:if(qi=null,u=Pt,Pt=Gi(t.containerInfo),bt(t,e),Pt=u,vt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{hl(t.containerInfo)}catch(se){Re(e,e.return,se)}rc&&(rc=!1,eg(e));break;case 4:a=Pt,Pt=Gi(e.stateNode.containerInfo),bt(t,e),vt(e),Pt=a;break;case 12:bt(t,e),vt(e);break;case 31:bt(t,e),vt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ti(e,a)));break;case 13:bt(t,e),vt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(_i=Nt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ti(e,a)));break;case 22:u=e.memoizedState!==null;var w=n!==null&&n.memoizedState!==null,z=vn,X=et;if(vn=z||u,et=X||w,bt(t,e),et=X,vn=z,vt(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||w||vn||et||xa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){w=n=t;try{if(c=w.stateNode,u)y=c.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{b=w.stateNode;var V=w.memoizedProps.style,B=V!=null&&V.hasOwnProperty("display")?V.display:null;b.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(se){Re(w,w.return,se)}}}else if(t.tag===6){if(n===null){w=t;try{w.stateNode.nodeValue=u?"":w.memoizedProps}catch(se){Re(w,w.return,se)}}}else if(t.tag===18){if(n===null){w=t;try{var G=w.stateNode;u?Ig(G,!0):Ig(w.stateNode,!1)}catch(se){Re(w,w.return,se)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Ti(e,n))));break;case 19:bt(t,e),vt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ti(e,a)));break;case 30:break;case 21:break;default:bt(t,e),vt(e)}}function vt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Fh(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var u=n.stateNode,c=ac(e);Ai(e,c,u);break;case 5:var y=n.stateNode;n.flags&32&&(La(y,""),n.flags&=-33);var b=ac(e);Ai(e,b,y);break;case 3:case 4:var w=n.stateNode.containerInfo,z=ac(e);lc(e,z,w);break;default:throw Error(s(161))}}catch(X){Re(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function eg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;eg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Vh(e,t.alternate,t),t=t.sibling}function xa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Gn(4,t,t.return),xa(t);break;case 1:an(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Ih(t,t.return,n),xa(t);break;case 27:pr(t.stateNode);case 26:case 5:an(t,t.return),xa(t);break;case 22:t.memoizedState===null&&xa(t);break;case 30:xa(t);break;default:xa(t)}e=e.sibling}}function En(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=e,c=t,y=c.flags;switch(c.tag){case 0:case 11:case 15:En(u,c,n),ir(4,c);break;case 1:if(En(u,c,n),a=c,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(z){Re(a,a.return,z)}if(a=c,u=a.updateQueue,u!==null){var b=a.stateNode;try{var w=u.shared.hiddenCallbacks;if(w!==null)for(u.shared.hiddenCallbacks=null,u=0;u<w.length;u++)kd(w[u],b)}catch(z){Re(a,a.return,z)}}n&&y&64&&qh(c),sr(c,c.return);break;case 27:$h(c);case 26:case 5:En(u,c,n),n&&a===null&&y&4&&Xh(c),sr(c,c.return);break;case 12:En(u,c,n);break;case 31:En(u,c,n),n&&y&4&&Jh(u,c);break;case 13:En(u,c,n),n&&y&4&&Wh(u,c);break;case 22:c.memoizedState===null&&En(u,c,n),sr(c,c.return);break;case 30:break;default:En(u,c,n)}t=t.sibling}}function ic(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Zl(n))}function sc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zl(e))}function en(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)tg(e,t,n,a),t=t.sibling}function tg(e,t,n,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:en(e,t,n,a),u&2048&&ir(9,t);break;case 1:en(e,t,n,a);break;case 3:en(e,t,n,a),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zl(e)));break;case 12:if(u&2048){en(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,y=c.id,b=c.onPostCommit;typeof b=="function"&&b(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Re(t,t.return,w)}}else en(e,t,n,a);break;case 31:en(e,t,n,a);break;case 13:en(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,y=t.alternate,t.memoizedState!==null?c._visibility&2?en(e,t,n,a):ur(e,t):c._visibility&2?en(e,t,n,a):(c._visibility|=2,nl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),u&2048&&ic(y,t);break;case 24:en(e,t,n,a),u&2048&&sc(t.alternate,t);break;default:en(e,t,n,a)}}function nl(e,t,n,a,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,y=t,b=n,w=a,z=y.flags;switch(y.tag){case 0:case 11:case 15:nl(c,y,b,w,u),ir(8,y);break;case 23:break;case 22:var X=y.stateNode;y.memoizedState!==null?X._visibility&2?nl(c,y,b,w,u):ur(c,y):(X._visibility|=2,nl(c,y,b,w,u)),u&&z&2048&&ic(y.alternate,y);break;case 24:nl(c,y,b,w,u),u&&z&2048&&sc(y.alternate,y);break;default:nl(c,y,b,w,u)}t=t.sibling}}function ur(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,u=a.flags;switch(a.tag){case 22:ur(n,a),u&2048&&ic(a.alternate,a);break;case 24:ur(n,a),u&2048&&sc(a.alternate,a);break;default:ur(n,a)}t=t.sibling}}var cr=8192;function al(e,t,n){if(e.subtreeFlags&cr)for(e=e.child;e!==null;)ng(e,t,n),e=e.sibling}function ng(e,t,n){switch(e.tag){case 26:al(e,t,n),e.flags&cr&&e.memoizedState!==null&&k0(n,Pt,e.memoizedState,e.memoizedProps);break;case 5:al(e,t,n);break;case 3:case 4:var a=Pt;Pt=Gi(e.stateNode.containerInfo),al(e,t,n),Pt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=cr,cr=16777216,al(e,t,n),cr=a):al(e,t,n));break;default:al(e,t,n)}}function ag(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function or(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];lt=a,rg(a,e)}ag(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)lg(e),e=e.sibling}function lg(e){switch(e.tag){case 0:case 11:case 15:or(e),e.flags&2048&&Gn(9,e,e.return);break;case 3:or(e);break;case 12:or(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ci(e)):or(e);break;default:or(e)}}function Ci(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];lt=a,rg(a,e)}ag(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gn(8,t,t.return),Ci(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ci(t));break;default:Ci(t)}e=e.sibling}}function rg(e,t){for(;lt!==null;){var n=lt;switch(n.tag){case 0:case 11:case 15:Gn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Zl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,lt=a;else e:for(n=e;lt!==null;){a=lt;var u=a.sibling,c=a.return;if(Kh(a),a===n){lt=null;break e}if(u!==null){u.return=c,lt=u;break e}lt=c}}}var $b={getCacheForType:function(e){var t=ct(Je),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ct(Je).controller.signal}},Zb=typeof WeakMap=="function"?WeakMap:Map,Oe=0,Be=null,Ee=null,we=0,ke=0,Ot=null,Yn=!1,ll=!1,uc=!1,Nn=0,Ve=0,qn=0,Sa=0,cc=0,kt=0,rl=0,fr=null,xt=null,oc=!1,_i=0,ig=0,ji=1/0,Oi=null,In=null,nt=0,Xn=null,il=null,wn=0,fc=0,dc=null,sg=null,dr=0,hc=null;function Rt(){return(Oe&2)!==0&&we!==0?we&-we:k.T!==null?vc():Nf()}function ug(){if(kt===0)if((we&536870912)===0||Te){var e=Br;Br<<=1,(Br&3932160)===0&&(Br=262144),kt=e}else kt=536870912;return e=_t.current,e!==null&&(e.flags|=32),kt}function St(e,t,n){(e===Be&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(sl(e,0),Fn(e,we,kt,!1)),Ml(e,n),((Oe&2)===0||e!==Be)&&(e===Be&&((Oe&2)===0&&(Sa|=n),Ve===4&&Fn(e,we,kt,!1)),ln(e))}function cg(e,t,n){if((Oe&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Rl(e,t),u=a?Qb(e,t):mc(e,t,!0),c=a;do{if(u===0){ll&&!a&&Fn(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Vb(n)){u=mc(e,t,!1),c=!1;continue}if(u===2){if(c=t,e.errorRecoveryDisabledLanes&c)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var b=e;u=fr;var w=b.current.memoizedState.isDehydrated;if(w&&(sl(b,y).flags|=256),y=mc(b,y,!1),y!==2){if(uc&&!w){b.errorRecoveryDisabledLanes|=c,Sa|=c,u=4;break e}c=xt,xt=u,c!==null&&(xt===null?xt=c:xt.push.apply(xt,c))}u=y}if(c=!1,u!==2)continue}}if(u===1){sl(e,0),Fn(e,t,0,!0);break}e:{switch(a=e,c=u,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Fn(a,t,kt,!Yn);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=_i+300-Nt(),10<u)){if(Fn(a,t,kt,!Yn),Gr(a,0,!0)!==0)break e;wn=t,a.timeoutHandle=Gg(og.bind(null,a,n,xt,Oi,oc,t,kt,Sa,rl,Yn,c,"Throttled",-0,0),u);break e}og(a,n,xt,Oi,oc,t,kt,Sa,rl,Yn,c,null,-0,0)}}break}while(!0);ln(e)}function og(e,t,n,a,u,c,y,b,w,z,X,V,B,G){if(e.timeoutHandle=-1,V=t.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:cn},ng(t,c,V);var se=(c&62914560)===c?_i-Nt():(c&4194048)===c?ig-Nt():0;if(se=R0(V,se),se!==null){wn=c,e.cancelPendingCommit=se(bg.bind(null,e,t,c,n,a,u,y,b,w,X,V,null,B,G)),Fn(e,c,y,!z);return}}bg(e,t,c,n,a,u,y,b,w)}function Vb(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var u=n[a],c=u.getSnapshot;u=u.value;try{if(!Tt(c(),u))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fn(e,t,n,a){t&=~cc,t&=~Sa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var u=t;0<u;){var c=31-At(u),y=1<<c;a[c]=-1,u&=~y}n!==0&&xf(e,n,t)}function ki(){return(Oe&6)===0?(hr(0),!1):!0}function gc(){if(Ee!==null){if(ke===0)var e=Ee.return;else e=Ee,hn=da=null,Ou(e),Ja=null,Kl=0,e=Ee;for(;e!==null;)Yh(e.alternate,e),e=e.return;Ee=null}}function sl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,g0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),wn=0,gc(),Be=e,Ee=n=fn(e.current,null),we=t,ke=0,Ot=null,Yn=!1,ll=Rl(e,t),uc=!1,rl=kt=cc=Sa=qn=Ve=0,xt=fr=null,oc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var u=31-At(a),c=1<<u;t|=e[u],a&=~c}return Nn=t,Wr(),n}function fg(e,t){ve=null,k.H=ar,t===Qa||t===ii?(t=Cd(),ke=3):t===bu?(t=Cd(),ke=4):ke=t===$u?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,Ee===null&&(Ve=1,xi(e,Yt(t,e.current)))}function dg(){var e=_t.current;return e===null?!0:(we&4194048)===we?Ft===null:(we&62914560)===we||(we&536870912)!==0?e===Ft:!1}function hg(){var e=k.H;return k.H=ar,e===null?ar:e}function gg(){var e=k.A;return k.A=$b,e}function Ri(){Ve=4,Yn||(we&4194048)!==we&&_t.current!==null||(ll=!0),(qn&134217727)===0&&(Sa&134217727)===0||Be===null||Fn(Be,we,kt,!1)}function mc(e,t,n){var a=Oe;Oe|=2;var u=hg(),c=gg();(Be!==e||we!==t)&&(Oi=null,sl(e,t)),t=!1;var y=Ve;e:do try{if(ke!==0&&Ee!==null){var b=Ee,w=Ot;switch(ke){case 8:gc(),y=6;break e;case 3:case 2:case 9:case 6:_t.current===null&&(t=!0);var z=ke;if(ke=0,Ot=null,ul(e,b,w,z),n&&ll){y=0;break e}break;default:z=ke,ke=0,Ot=null,ul(e,b,w,z)}}Kb(),y=Ve;break}catch(X){fg(e,X)}while(!0);return t&&e.shellSuspendCounter++,hn=da=null,Oe=a,k.H=u,k.A=c,Ee===null&&(Be=null,we=0,Wr()),y}function Kb(){for(;Ee!==null;)mg(Ee)}function Qb(e,t){var n=Oe;Oe|=2;var a=hg(),u=gg();Be!==e||we!==t?(Oi=null,ji=Nt()+500,sl(e,t)):ll=Rl(e,t);e:do try{if(ke!==0&&Ee!==null){t=Ee;var c=Ot;t:switch(ke){case 1:ke=0,Ot=null,ul(e,t,c,1);break;case 2:case 9:if(Ad(c)){ke=0,Ot=null,pg(t);break}t=function(){ke!==2&&ke!==9||Be!==e||(ke=7),ln(e)},c.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:Ad(c)?(ke=0,Ot=null,pg(t)):(ke=0,Ot=null,ul(e,t,c,7));break;case 5:var y=null;switch(Ee.tag){case 26:y=Ee.memoizedState;case 5:case 27:var b=Ee;if(y?tm(y):b.stateNode.complete){ke=0,Ot=null;var w=b.sibling;if(w!==null)Ee=w;else{var z=b.return;z!==null?(Ee=z,Mi(z)):Ee=null}break t}}ke=0,Ot=null,ul(e,t,c,5);break;case 6:ke=0,Ot=null,ul(e,t,c,6);break;case 8:gc(),Ve=6;break e;default:throw Error(s(462))}}Jb();break}catch(X){fg(e,X)}while(!0);return hn=da=null,k.H=a,k.A=u,Oe=n,Ee!==null?0:(Be=null,we=0,Wr(),Ve)}function Jb(){for(;Ee!==null&&!xy();)mg(Ee)}function mg(e){var t=Hh(e.alternate,e,Nn);e.memoizedProps=e.pendingProps,t===null?Mi(e):Ee=t}function pg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Mh(n,t,t.pendingProps,t.type,void 0,we);break;case 11:t=Mh(n,t,t.pendingProps,t.type.render,t.ref,we);break;case 5:Ou(t);default:Yh(n,t),t=Ee=gd(t,Nn),t=Hh(n,t,Nn)}e.memoizedProps=e.pendingProps,t===null?Mi(e):Ee=t}function ul(e,t,n,a){hn=da=null,Ou(t),Ja=null,Kl=0;var u=t.return;try{if(Hb(e,u,t,n,we)){Ve=1,xi(e,Yt(n,e.current)),Ee=null;return}}catch(c){if(u!==null)throw Ee=u,c;Ve=1,xi(e,Yt(n,e.current)),Ee=null;return}t.flags&32768?(Te||a===1?e=!0:ll||(we&536870912)!==0?e=!1:(Yn=e=!0,(a===2||a===9||a===3||a===6)&&(a=_t.current,a!==null&&a.tag===13&&(a.flags|=16384))),yg(t,e)):Mi(t)}function Mi(e){var t=e;do{if((t.flags&32768)!==0){yg(t,Yn);return}e=t.return;var n=qb(t.alternate,t,Nn);if(n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Ve===0&&(Ve=5)}function yg(e,t){do{var n=Ib(e.alternate,e);if(n!==null){n.flags&=32767,Ee=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=n}while(e!==null);Ve=6,Ee=null}function bg(e,t,n,a,u,c,y,b,w){e.cancelPendingCommit=null;do Di();while(nt!==0);if((Oe&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=au,Oy(e,n,c,y,b,w),e===Be&&(Ee=Be=null,we=0),il=t,Xn=e,wn=n,fc=c,dc=u,sg=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,t0(Lr,function(){return Ng(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null,u=L.p,L.p=2,y=Oe,Oe|=4;try{Xb(e,t,n)}finally{Oe=y,L.p=u,k.T=a}}nt=1,vg(),xg(),Sg()}}function vg(){if(nt===1){nt=0;var e=Xn,t=il,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=k.T,k.T=null;var a=L.p;L.p=2;var u=Oe;Oe|=4;try{Ph(t,e);var c=Cc,y=rd(e.containerInfo),b=c.focusedElem,w=c.selectionRange;if(y!==b&&b&&b.ownerDocument&&ld(b.ownerDocument.documentElement,b)){if(w!==null&&Ws(b)){var z=w.start,X=w.end;if(X===void 0&&(X=z),"selectionStart"in b)b.selectionStart=z,b.selectionEnd=Math.min(X,b.value.length);else{var V=b.ownerDocument||document,B=V&&V.defaultView||window;if(B.getSelection){var G=B.getSelection(),se=b.textContent.length,pe=Math.min(w.start,se),Le=w.end===void 0?pe:Math.min(w.end,se);!G.extend&&pe>Le&&(y=Le,Le=pe,pe=y);var j=ad(b,pe),T=ad(b,Le);if(j&&T&&(G.rangeCount!==1||G.anchorNode!==j.node||G.anchorOffset!==j.offset||G.focusNode!==T.node||G.focusOffset!==T.offset)){var M=V.createRange();M.setStart(j.node,j.offset),G.removeAllRanges(),pe>Le?(G.addRange(M),G.extend(T.node,T.offset)):(M.setEnd(T.node,T.offset),G.addRange(M))}}}}for(V=[],G=b;G=G.parentNode;)G.nodeType===1&&V.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<V.length;b++){var Z=V[b];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}$i=!!Tc,Cc=Tc=null}finally{Oe=u,L.p=a,k.T=n}}e.current=t,nt=2}}function xg(){if(nt===2){nt=0;var e=Xn,t=il,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=k.T,k.T=null;var a=L.p;L.p=2;var u=Oe;Oe|=4;try{Vh(e,t.alternate,t)}finally{Oe=u,L.p=a,k.T=n}}nt=3}}function Sg(){if(nt===4||nt===3){nt=0,Sy();var e=Xn,t=il,n=wn,a=sg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,il=Xn=null,Eg(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(In=null),Ms(n),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(kl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=k.T,u=L.p,L.p=2,k.T=null;try{for(var c=e.onRecoverableError,y=0;y<a.length;y++){var b=a[y];c(b.value,{componentStack:b.stack})}}finally{k.T=t,L.p=u}}(wn&3)!==0&&Di(),ln(e),u=e.pendingLanes,(n&261930)!==0&&(u&42)!==0?e===hc?dr++:(dr=0,hc=e):dr=0,hr(0)}}function Eg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zl(t)))}function Di(){return vg(),xg(),Sg(),Ng()}function Ng(){if(nt!==5)return!1;var e=Xn,t=fc;fc=0;var n=Ms(wn),a=k.T,u=L.p;try{L.p=32>n?32:n,k.T=null,n=dc,dc=null;var c=Xn,y=wn;if(nt=0,il=Xn=null,wn=0,(Oe&6)!==0)throw Error(s(331));var b=Oe;if(Oe|=4,lg(c.current),tg(c,c.current,y,n),Oe=b,hr(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(kl,c)}catch{}return!0}finally{L.p=u,k.T=a,Eg(e,t)}}function wg(e,t,n){t=Yt(n,t),t=Fu(e.stateNode,t,2),e=Un(e,t,2),e!==null&&(Ml(e,2),ln(e))}function Re(e,t,n){if(e.tag===3)wg(e,e,n);else for(;t!==null;){if(t.tag===3){wg(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(In===null||!In.has(a))){e=Yt(n,e),n=Ah(2),a=Un(t,n,2),a!==null&&(Th(n,a,t,e),Ml(a,2),ln(a));break}}t=t.return}}function pc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Zb;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(n)||(uc=!0,u.add(n),e=Wb.bind(null,e,t,n),t.then(e,e))}function Wb(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Be===e&&(we&n)===n&&(Ve===4||Ve===3&&(we&62914560)===we&&300>Nt()-_i?(Oe&2)===0&&sl(e,0):cc|=n,rl===we&&(rl=0)),ln(e)}function Ag(e,t){t===0&&(t=vf()),e=ca(e,t),e!==null&&(Ml(e,t),ln(e))}function Pb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ag(e,n)}function e0(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(n=u.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),Ag(e,n)}function t0(e,t){return js(e,t)}var zi=null,cl=null,yc=!1,Li=!1,bc=!1,$n=0;function ln(e){e!==cl&&e.next===null&&(cl===null?zi=cl=e:cl=cl.next=e),Li=!0,yc||(yc=!0,a0())}function hr(e,t){if(!bc&&Li){bc=!0;do for(var n=!1,a=zi;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var c=0;else{var y=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-At(42|e)+1)-1,c&=u&~(y&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,jg(a,c))}else c=we,c=Gr(a,a===Be?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Rl(a,c)||(n=!0,jg(a,c));a=a.next}while(n);bc=!1}}function n0(){Tg()}function Tg(){Li=yc=!1;var e=0;$n!==0&&h0()&&(e=$n);for(var t=Nt(),n=null,a=zi;a!==null;){var u=a.next,c=Cg(a,t);c===0?(a.next=null,n===null?zi=u:n.next=u,u===null&&(cl=n)):(n=a,(e!==0||(c&3)!==0)&&(Li=!0)),a=u}nt!==0&&nt!==5||hr(e),$n!==0&&($n=0)}function Cg(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var y=31-At(c),b=1<<y,w=u[y];w===-1?((b&n)===0||(b&a)!==0)&&(u[y]=jy(b,t)):w<=t&&(e.expiredLanes|=b),c&=~b}if(t=Be,n=we,n=Gr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Os(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Rl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Os(a),Ms(n)){case 2:case 8:n=yf;break;case 32:n=Lr;break;case 268435456:n=bf;break;default:n=Lr}return a=_g.bind(null,e),n=js(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Os(a),e.callbackPriority=2,e.callbackNode=null,2}function _g(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Di()&&e.callbackNode!==n)return null;var a=we;return a=Gr(e,e===Be?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(cg(e,a,t),Cg(e,Nt()),e.callbackNode!=null&&e.callbackNode===n?_g.bind(null,e):null)}function jg(e,t){if(Di())return null;cg(e,t,!0)}function a0(){m0(function(){(Oe&6)!==0?js(pf,n0):Tg()})}function vc(){if($n===0){var e=Va;e===0&&(e=Ur,Ur<<=1,(Ur&261888)===0&&(Ur=256)),$n=e}return $n}function Og(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xr(""+e)}function kg(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function l0(e,t,n,a,u){if(t==="submit"&&n&&n.stateNode===u){var c=Og((u[mt]||null).action),y=a.submitter;y&&(t=(t=y[mt]||null)?Og(t.formAction):y.getAttribute("formAction"),t!==null&&(c=t,y=null));var b=new Vr("action","action",null,a,u);e.push({event:b,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if($n!==0){var w=y?kg(u,y):new FormData(u);Hu(n,{pending:!0,data:w,method:u.method,action:c},null,w)}}else typeof c=="function"&&(b.preventDefault(),w=y?kg(u,y):new FormData(u),Hu(n,{pending:!0,data:w,method:u.method,action:c},c,w))},currentTarget:u}]})}}for(var xc=0;xc<nu.length;xc++){var Sc=nu[xc],r0=Sc.toLowerCase(),i0=Sc[0].toUpperCase()+Sc.slice(1);Wt(r0,"on"+i0)}Wt(ud,"onAnimationEnd"),Wt(cd,"onAnimationIteration"),Wt(od,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(Eb,"onTransitionRun"),Wt(Nb,"onTransitionStart"),Wt(wb,"onTransitionCancel"),Wt(fd,"onTransitionEnd"),Da("onMouseEnter",["mouseout","mouseover"]),Da("onMouseLeave",["mouseout","mouseover"]),Da("onPointerEnter",["pointerout","pointerover"]),Da("onPointerLeave",["pointerout","pointerover"]),ra("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ra("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ra("onBeforeInput",["compositionend","keypress","textInput","paste"]),ra("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ra("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ra("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),s0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gr));function Rg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],u=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var y=a.length-1;0<=y;y--){var b=a[y],w=b.instance,z=b.currentTarget;if(b=b.listener,w!==c&&u.isPropagationStopped())break e;c=b,u.currentTarget=z;try{c(u)}catch(X){Jr(X)}u.currentTarget=null,c=w}else for(y=0;y<a.length;y++){if(b=a[y],w=b.instance,z=b.currentTarget,b=b.listener,w!==c&&u.isPropagationStopped())break e;c=b,u.currentTarget=z;try{c(u)}catch(X){Jr(X)}u.currentTarget=null,c=w}}}}function Ne(e,t){var n=t[Ds];n===void 0&&(n=t[Ds]=new Set);var a=e+"__bubble";n.has(a)||(Mg(t,e,2,!1),n.add(a))}function Ec(e,t,n){var a=0;t&&(a|=4),Mg(n,e,a,t)}var Ui="_reactListening"+Math.random().toString(36).slice(2);function Nc(e){if(!e[Ui]){e[Ui]=!0,Tf.forEach(function(n){n!=="selectionchange"&&(s0.has(n)||Ec(n,!1,e),Ec(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ui]||(t[Ui]=!0,Ec("selectionchange",!1,t))}}function Mg(e,t,n,a){switch(um(t)){case 2:var u=z0;break;case 8:u=L0;break;default:u=Bc}n=u.bind(null,t,n,e),u=void 0,!Is||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function wc(e,t,n,a,u){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var y=a.tag;if(y===3||y===4){var b=a.stateNode.containerInfo;if(b===u)break;if(y===4)for(y=a.return;y!==null;){var w=y.tag;if((w===3||w===4)&&y.stateNode.containerInfo===u)return;y=y.return}for(;b!==null;){if(y=ka(b),y===null)return;if(w=y.tag,w===5||w===6||w===26||w===27){a=c=y;continue e}b=b.parentNode}}a=a.return}Bf(function(){var z=c,X=Ys(n),V=[];e:{var B=dd.get(e);if(B!==void 0){var G=Vr,se=e;switch(e){case"keypress":if($r(n)===0)break e;case"keydown":case"keyup":G=eb;break;case"focusin":se="focus",G=Zs;break;case"focusout":se="blur",G=Zs;break;case"beforeblur":case"afterblur":G=Zs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Yf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=qy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=ab;break;case ud:case cd:case od:G=Fy;break;case fd:G=rb;break;case"scroll":case"scrollend":G=Gy;break;case"wheel":G=sb;break;case"copy":case"cut":case"paste":G=Zy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=If;break;case"toggle":case"beforetoggle":G=cb}var pe=(t&4)!==0,Le=!pe&&(e==="scroll"||e==="scrollend"),j=pe?B!==null?B+"Capture":null:B;pe=[];for(var T=z,M;T!==null;){var Z=T;if(M=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||M===null||j===null||(Z=Ll(T,j),Z!=null&&pe.push(mr(T,Z,M))),Le)break;T=T.return}0<pe.length&&(B=new G(B,se,null,n,X),V.push({event:B,listeners:pe}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",B&&n!==Gs&&(se=n.relatedTarget||n.fromElement)&&(ka(se)||se[Oa]))break e;if((G||B)&&(B=X.window===X?X:(B=X.ownerDocument)?B.defaultView||B.parentWindow:window,G?(se=n.relatedTarget||n.toElement,G=z,se=se?ka(se):null,se!==null&&(Le=d(se),pe=se.tag,se!==Le||pe!==5&&pe!==27&&pe!==6)&&(se=null)):(G=null,se=z),G!==se)){if(pe=Yf,Z="onMouseLeave",j="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(pe=If,Z="onPointerLeave",j="onPointerEnter",T="pointer"),Le=G==null?B:zl(G),M=se==null?B:zl(se),B=new pe(Z,T+"leave",G,n,X),B.target=Le,B.relatedTarget=M,Z=null,ka(X)===z&&(pe=new pe(j,T+"enter",se,n,X),pe.target=M,pe.relatedTarget=Le,Z=pe),Le=Z,G&&se)t:{for(pe=u0,j=G,T=se,M=0,Z=j;Z;Z=pe(Z))M++;Z=0;for(var he=T;he;he=pe(he))Z++;for(;0<M-Z;)j=pe(j),M--;for(;0<Z-M;)T=pe(T),Z--;for(;M--;){if(j===T||T!==null&&j===T.alternate){pe=j;break t}j=pe(j),T=pe(T)}pe=null}else pe=null;G!==null&&Dg(V,B,G,pe,!1),se!==null&&Le!==null&&Dg(V,Le,se,pe,!0)}}e:{if(B=z?zl(z):window,G=B.nodeName&&B.nodeName.toLowerCase(),G==="select"||G==="input"&&B.type==="file")var _e=Jf;else if(Kf(B))if(Wf)_e=vb;else{_e=yb;var oe=pb}else G=B.nodeName,!G||G.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?z&&Hs(z.elementType)&&(_e=Jf):_e=bb;if(_e&&(_e=_e(e,z))){Qf(V,_e,n,X);break e}oe&&oe(e,B,z),e==="focusout"&&z&&B.type==="number"&&z.memoizedProps.value!=null&&Bs(B,"number",B.value)}switch(oe=z?zl(z):window,e){case"focusin":(Kf(oe)||oe.contentEditable==="true")&&(Ga=oe,Ps=z,Xl=null);break;case"focusout":Xl=Ps=Ga=null;break;case"mousedown":eu=!0;break;case"contextmenu":case"mouseup":case"dragend":eu=!1,id(V,n,X);break;case"selectionchange":if(Sb)break;case"keydown":case"keyup":id(V,n,X)}var Se;if(Ks)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else Ha?Zf(e,n)&&(Ae="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ae="onCompositionStart");Ae&&(Xf&&n.locale!=="ko"&&(Ha||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Ha&&(Se=Hf()):(On=X,Xs="value"in On?On.value:On.textContent,Ha=!0)),oe=Bi(z,Ae),0<oe.length&&(Ae=new qf(Ae,e,null,n,X),V.push({event:Ae,listeners:oe}),Se?Ae.data=Se:(Se=Vf(n),Se!==null&&(Ae.data=Se)))),(Se=fb?db(e,n):hb(e,n))&&(Ae=Bi(z,"onBeforeInput"),0<Ae.length&&(oe=new qf("onBeforeInput","beforeinput",null,n,X),V.push({event:oe,listeners:Ae}),oe.data=Se)),l0(V,e,z,n,X)}Rg(V,t)})}function mr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bi(e,t){for(var n=t+"Capture",a=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=Ll(e,n),u!=null&&a.unshift(mr(e,u,c)),u=Ll(e,t),u!=null&&a.push(mr(e,u,c))),e.tag===3)return a;e=e.return}return[]}function u0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Dg(e,t,n,a,u){for(var c=t._reactName,y=[];n!==null&&n!==a;){var b=n,w=b.alternate,z=b.stateNode;if(b=b.tag,w!==null&&w===a)break;b!==5&&b!==26&&b!==27||z===null||(w=z,u?(z=Ll(n,c),z!=null&&y.unshift(mr(n,z,w))):u||(z=Ll(n,c),z!=null&&y.push(mr(n,z,w)))),n=n.return}y.length!==0&&e.push({event:t,listeners:y})}var c0=/\r\n?/g,o0=/\u0000|\uFFFD/g;function zg(e){return(typeof e=="string"?e:""+e).replace(c0,`
|
|
49
|
+
`).replace(o0,"")}function Lg(e,t){return t=zg(t),zg(e)===t}function ze(e,t,n,a,u,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||La(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&La(e,""+a);break;case"className":qr(e,"class",a);break;case"tabIndex":qr(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":qr(e,n,a);break;case"style":Lf(e,a,c);break;case"data":if(t!=="object"){qr(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Xr(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&ze(e,t,"name",u.name,u,null),ze(e,t,"formEncType",u.formEncType,u,null),ze(e,t,"formMethod",u.formMethod,u,null),ze(e,t,"formTarget",u.formTarget,u,null)):(ze(e,t,"encType",u.encType,u,null),ze(e,t,"method",u.method,u,null),ze(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Xr(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=cn);break;case"onScroll":a!=null&&Ne("scroll",e);break;case"onScrollEnd":a!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Xr(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),Yr(e,"popover",a);break;case"xlinkActuate":un(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":un(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":un(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":un(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":un(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":un(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":un(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":un(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":un(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Yr(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=By.get(n)||n,Yr(e,n,a))}}function Ac(e,t,n,a,u,c){switch(n){case"style":Lf(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof a=="string"?La(e,a):(typeof a=="number"||typeof a=="bigint")&&La(e,""+a);break;case"onScroll":a!=null&&Ne("scroll",e);break;case"onScrollEnd":a!=null&&Ne("scrollend",e);break;case"onClick":a!=null&&(e.onclick=cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),t=n.slice(2,u?n.length-7:void 0),c=e[mt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,u);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Yr(e,n,a)}}}function ft(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var a=!1,u=!1,c;for(c in n)if(n.hasOwnProperty(c)){var y=n[c];if(y!=null)switch(c){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ze(e,t,c,y,n,null)}}u&&ze(e,t,"srcSet",n.srcSet,n,null),a&&ze(e,t,"src",n.src,n,null);return;case"input":Ne("invalid",e);var b=c=y=u=null,w=null,z=null;for(a in n)if(n.hasOwnProperty(a)){var X=n[a];if(X!=null)switch(a){case"name":u=X;break;case"type":y=X;break;case"checked":w=X;break;case"defaultChecked":z=X;break;case"value":c=X;break;case"defaultValue":b=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(s(137,t));break;default:ze(e,t,a,X,n,null)}}Rf(e,c,b,w,z,y,u,!1);return;case"select":Ne("invalid",e),a=y=c=null;for(u in n)if(n.hasOwnProperty(u)&&(b=n[u],b!=null))switch(u){case"value":c=b;break;case"defaultValue":y=b;break;case"multiple":a=b;default:ze(e,t,u,b,n,null)}t=c,n=y,e.multiple=!!a,t!=null?za(e,!!a,t,!1):n!=null&&za(e,!!a,n,!0);return;case"textarea":Ne("invalid",e),c=u=a=null;for(y in n)if(n.hasOwnProperty(y)&&(b=n[y],b!=null))switch(y){case"value":a=b;break;case"defaultValue":u=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(s(91));break;default:ze(e,t,y,b,n,null)}Df(e,a,u,c);return;case"option":for(w in n)if(n.hasOwnProperty(w)&&(a=n[w],a!=null))switch(w){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ze(e,t,w,a,n,null)}return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(a=0;a<gr.length;a++)Ne(gr[a],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in n)if(n.hasOwnProperty(z)&&(a=n[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ze(e,t,z,a,n,null)}return;default:if(Hs(t)){for(X in n)n.hasOwnProperty(X)&&(a=n[X],a!==void 0&&Ac(e,t,X,a,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(a=n[b],a!=null&&ze(e,t,b,a,n,null))}function f0(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,y=null,b=null,w=null,z=null,X=null;for(G in n){var V=n[G];if(n.hasOwnProperty(G)&&V!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":w=V;default:a.hasOwnProperty(G)||ze(e,t,G,null,a,V)}}for(var B in a){var G=a[B];if(V=n[B],a.hasOwnProperty(B)&&(G!=null||V!=null))switch(B){case"type":c=G;break;case"name":u=G;break;case"checked":z=G;break;case"defaultChecked":X=G;break;case"value":y=G;break;case"defaultValue":b=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,t));break;default:G!==V&&ze(e,t,B,G,a,V)}}Us(e,y,b,w,z,X,c,u);return;case"select":G=y=b=B=null;for(c in n)if(w=n[c],n.hasOwnProperty(c)&&w!=null)switch(c){case"value":break;case"multiple":G=w;default:a.hasOwnProperty(c)||ze(e,t,c,null,a,w)}for(u in a)if(c=a[u],w=n[u],a.hasOwnProperty(u)&&(c!=null||w!=null))switch(u){case"value":B=c;break;case"defaultValue":b=c;break;case"multiple":y=c;default:c!==w&&ze(e,t,u,c,a,w)}t=b,n=y,a=G,B!=null?za(e,!!n,B,!1):!!a!=!!n&&(t!=null?za(e,!!n,t,!0):za(e,!!n,n?[]:"",!1));return;case"textarea":G=B=null;for(b in n)if(u=n[b],n.hasOwnProperty(b)&&u!=null&&!a.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:ze(e,t,b,null,a,u)}for(y in a)if(u=a[y],c=n[y],a.hasOwnProperty(y)&&(u!=null||c!=null))switch(y){case"value":B=u;break;case"defaultValue":G=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==c&&ze(e,t,y,u,a,c)}Mf(e,B,G);return;case"option":for(var se in n)if(B=n[se],n.hasOwnProperty(se)&&B!=null&&!a.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:ze(e,t,se,null,a,B)}for(w in a)if(B=a[w],G=n[w],a.hasOwnProperty(w)&&B!==G&&(B!=null||G!=null))switch(w){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:ze(e,t,w,B,a,G)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var pe in n)B=n[pe],n.hasOwnProperty(pe)&&B!=null&&!a.hasOwnProperty(pe)&&ze(e,t,pe,null,a,B);for(z in a)if(B=a[z],G=n[z],a.hasOwnProperty(z)&&B!==G&&(B!=null||G!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:ze(e,t,z,B,a,G)}return;default:if(Hs(t)){for(var Le in n)B=n[Le],n.hasOwnProperty(Le)&&B!==void 0&&!a.hasOwnProperty(Le)&&Ac(e,t,Le,void 0,a,B);for(X in a)B=a[X],G=n[X],!a.hasOwnProperty(X)||B===G||B===void 0&&G===void 0||Ac(e,t,X,B,a,G);return}}for(var j in n)B=n[j],n.hasOwnProperty(j)&&B!=null&&!a.hasOwnProperty(j)&&ze(e,t,j,null,a,B);for(V in a)B=a[V],G=n[V],!a.hasOwnProperty(V)||B===G||B==null&&G==null||ze(e,t,V,B,a,G)}function Ug(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function d0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var u=n[a],c=u.transferSize,y=u.initiatorType,b=u.duration;if(c&&b&&Ug(y)){for(y=0,b=u.responseEnd,a+=1;a<n.length;a++){var w=n[a],z=w.startTime;if(z>b)break;var X=w.transferSize,V=w.initiatorType;X&&Ug(V)&&(w=w.responseEnd,y+=X*(w<b?1:(b-z)/(w-z)))}if(--a,t+=8*(c+y)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Tc=null,Cc=null;function Hi(e){return e.nodeType===9?e:e.ownerDocument}function Bg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Hg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function _c(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var jc=null;function h0(){var e=window.event;return e&&e.type==="popstate"?e===jc?!1:(jc=e,!0):(jc=null,!1)}var Gg=typeof setTimeout=="function"?setTimeout:void 0,g0=typeof clearTimeout=="function"?clearTimeout:void 0,Yg=typeof Promise=="function"?Promise:void 0,m0=typeof queueMicrotask=="function"?queueMicrotask:typeof Yg<"u"?function(e){return Yg.resolve(null).then(e).catch(p0)}:Gg;function p0(e){setTimeout(function(){throw e})}function Zn(e){return e==="head"}function qg(e,t){var n=t,a=0;do{var u=n.nextSibling;if(e.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(u),hl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")pr(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,pr(n);for(var c=n.firstChild;c;){var y=c.nextSibling,b=c.nodeName;c[Dl]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=y}}else n==="body"&&pr(e.ownerDocument.body);n=u}while(n);hl(t)}function Ig(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Oc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Oc(n),zs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function y0(e,t,n,a){for(;e.nodeType===1;){var u=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Dl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=$t(e.nextSibling),e===null)break}return null}function b0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=$t(e.nextSibling),e===null))return null;return e}function Xg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=$t(e.nextSibling),e===null))return null;return e}function kc(e){return e.data==="$?"||e.data==="$~"}function Rc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function v0(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function $t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Mc=null;function Fg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return $t(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function $g(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Zg(e,t,n){switch(t=Hi(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function pr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);zs(e)}var Zt=new Map,Vg=new Set;function Gi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var An=L.d;L.d={f:x0,r:S0,D:E0,C:N0,L:w0,m:A0,X:C0,S:T0,M:_0};function x0(){var e=An.f(),t=ki();return e||t}function S0(e){var t=Ra(e);t!==null&&t.tag===5&&t.type==="form"?fh(t):An.r(e)}var ol=typeof document>"u"?null:document;function Kg(e,t,n){var a=ol;if(a&&typeof t=="string"&&t){var u=Ht(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),Vg.has(u)||(Vg.add(u),e={rel:e,crossOrigin:n,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),ft(t,"link",e),at(t),a.head.appendChild(t)))}}function E0(e){An.D(e),Kg("dns-prefetch",e,null)}function N0(e,t){An.C(e,t),Kg("preconnect",e,t)}function w0(e,t,n){An.L(e,t,n);var a=ol;if(a&&e&&t){var u='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Ht(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Ht(n.imageSizes)+'"]')):u+='[href="'+Ht(e)+'"]';var c=u;switch(t){case"style":c=fl(e);break;case"script":c=dl(e)}Zt.has(c)||(e=x({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zt.set(c,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(yr(c))||t==="script"&&a.querySelector(br(c))||(t=a.createElement("link"),ft(t,"link",e),at(t),a.head.appendChild(t)))}}function A0(e,t){An.m(e,t);var n=ol;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Ht(a)+'"][href="'+Ht(e)+'"]',c=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=dl(e)}if(!Zt.has(c)&&(e=x({rel:"modulepreload",href:e},t),Zt.set(c,e),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(br(c)))return}a=n.createElement("link"),ft(a,"link",e),at(a),n.head.appendChild(a)}}}function T0(e,t,n){An.S(e,t,n);var a=ol;if(a&&e){var u=Ma(a).hoistableStyles,c=fl(e);t=t||"default";var y=u.get(c);if(!y){var b={loading:0,preload:null};if(y=a.querySelector(yr(c)))b.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zt.get(c))&&Dc(e,n);var w=y=a.createElement("link");at(w),ft(w,"link",e),w._p=new Promise(function(z,X){w.onload=z,w.onerror=X}),w.addEventListener("load",function(){b.loading|=1}),w.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Yi(y,t,a)}y={type:"stylesheet",instance:y,count:1,state:b},u.set(c,y)}}}function C0(e,t){An.X(e,t);var n=ol;if(n&&e){var a=Ma(n).hoistableScripts,u=dl(e),c=a.get(u);c||(c=n.querySelector(br(u)),c||(e=x({src:e,async:!0},t),(t=Zt.get(u))&&zc(e,t),c=n.createElement("script"),at(c),ft(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function _0(e,t){An.M(e,t);var n=ol;if(n&&e){var a=Ma(n).hoistableScripts,u=dl(e),c=a.get(u);c||(c=n.querySelector(br(u)),c||(e=x({src:e,async:!0,type:"module"},t),(t=Zt.get(u))&&zc(e,t),c=n.createElement("script"),at(c),ft(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function Qg(e,t,n,a){var u=(u=ae.current)?Gi(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=fl(n.href),n=Ma(u).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=fl(n.href);var c=Ma(u).hoistableStyles,y=c.get(e);if(y||(u=u.ownerDocument||u,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,y),(c=u.querySelector(yr(e)))&&!c._p&&(y.instance=c,y.state.loading=5),Zt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Zt.set(e,n),c||j0(u,e,n,y.state))),t&&a===null)throw Error(s(528,""));return y}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=dl(n),n=Ma(u).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function fl(e){return'href="'+Ht(e)+'"'}function yr(e){return'link[rel="stylesheet"]['+e+"]"}function Jg(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function j0(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ft(t,"link",n),at(t),e.head.appendChild(t))}function dl(e){return'[src="'+Ht(e)+'"]'}function br(e){return"script[async]"+e}function Wg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ht(n.href)+'"]');if(a)return t.instance=a,at(a),a;var u=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),at(a),ft(a,"style",u),Yi(a,n.precedence,e),t.instance=a;case"stylesheet":u=fl(n.href);var c=e.querySelector(yr(u));if(c)return t.state.loading|=4,t.instance=c,at(c),c;a=Jg(n),(u=Zt.get(u))&&Dc(a,u),c=(e.ownerDocument||e).createElement("link"),at(c);var y=c;return y._p=new Promise(function(b,w){y.onload=b,y.onerror=w}),ft(c,"link",a),t.state.loading|=4,Yi(c,n.precedence,e),t.instance=c;case"script":return c=dl(n.src),(u=e.querySelector(br(c)))?(t.instance=u,at(u),u):(a=n,(u=Zt.get(c))&&(a=x({},n),zc(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),at(u),ft(u,"link",a),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Yi(a,n.precedence,e));return t.instance}function Yi(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,c=u,y=0;y<a.length;y++){var b=a[y];if(b.dataset.precedence===t)c=b;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Dc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function zc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var qi=null;function Pg(e,t,n){if(qi===null){var a=new Map,u=qi=new Map;u.set(n,a)}else u=qi,a=u.get(n),a||(a=new Map,u.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),u=0;u<n.length;u++){var c=n[u];if(!(c[Dl]||c[st]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var y=c.getAttribute(t)||"";y=e+y;var b=a.get(y);b?b.push(c):a.set(y,[c])}}return a}function em(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function O0(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function tm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function k0(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=fl(a.href),c=t.querySelector(yr(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ii.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,at(c);return}c=t.ownerDocument||t,a=Jg(a),(u=Zt.get(u))&&Dc(a,u),c=c.createElement("link"),at(c);var y=c;y._p=new Promise(function(b,w){y.onload=b,y.onerror=w}),ft(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Ii.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Lc=0;function R0(e,t){return e.stylesheets&&e.count===0&&Fi(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Fi(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Lc===0&&(Lc=62500*d0());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Fi(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Lc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function Ii(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xi=null;function Fi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xi=new Map,t.forEach(M0,e),Xi=null,Ii.call(e))}function M0(e,t){if(!(t.state.loading&4)){var n=Xi.get(e);if(n)var a=n.get(null);else{n=new Map,Xi.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var y=u[c];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(n.set(y.dataset.precedence,y),a=y)}a&&n.set(null,a)}u=t.instance,y=u.getAttribute("data-precedence"),c=n.get(y)||a,c===a&&n.set(null,u),n.set(y,u),this.count++,a=Ii.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var vr={$$typeof:O,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function D0(e,t,n,a,u,c,y,b,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ks(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ks(0),this.hiddenUpdates=ks(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function nm(e,t,n,a,u,c,y,b,w,z,X,V){return e=new D0(e,t,n,y,w,z,X,V,b),t=1,c===!0&&(t|=24),c=Ct(3,null,null,t),e.current=c,c.stateNode=e,t=mu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},vu(c),e}function am(e){return e?(e=Ia,e):Ia}function lm(e,t,n,a,u,c){u=am(u),a.context===null?a.context=u:a.pendingContext=u,a=Ln(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=Un(e,a,t),n!==null&&(St(n,e,t),Jl(n,e,t))}function rm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Uc(e,t){rm(e,t),(e=e.alternate)&&rm(e,t)}function im(e){if(e.tag===13||e.tag===31){var t=ca(e,67108864);t!==null&&St(t,e,67108864),Uc(e,67108864)}}function sm(e){if(e.tag===13||e.tag===31){var t=Rt();t=Rs(t);var n=ca(e,t);n!==null&&St(n,e,t),Uc(e,t)}}var $i=!0;function z0(e,t,n,a){var u=k.T;k.T=null;var c=L.p;try{L.p=2,Bc(e,t,n,a)}finally{L.p=c,k.T=u}}function L0(e,t,n,a){var u=k.T;k.T=null;var c=L.p;try{L.p=8,Bc(e,t,n,a)}finally{L.p=c,k.T=u}}function Bc(e,t,n,a){if($i){var u=Hc(a);if(u===null)wc(e,t,a,Zi,n),cm(e,a);else if(B0(u,e,t,n,a))a.stopPropagation();else if(cm(e,a),t&4&&-1<U0.indexOf(e)){for(;u!==null;){var c=Ra(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var y=la(c.pendingLanes);if(y!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;y;){var w=1<<31-At(y);b.entanglements[1]|=w,y&=~w}ln(c),(Oe&6)===0&&(ji=Nt()+500,hr(0))}}break;case 31:case 13:b=ca(c,2),b!==null&&St(b,c,2),ki(),Uc(c,2)}if(c=Hc(a),c===null&&wc(e,t,a,Zi,n),c===u)break;u=c}u!==null&&a.stopPropagation()}else wc(e,t,a,null,n)}}function Hc(e){return e=Ys(e),Gc(e)}var Zi=null;function Gc(e){if(Zi=null,e=ka(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Zi=e,null}function um(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ey()){case pf:return 2;case yf:return 8;case Lr:case Ny:return 32;case bf:return 268435456;default:return 32}default:return 32}}var Yc=!1,Vn=null,Kn=null,Qn=null,xr=new Map,Sr=new Map,Jn=[],U0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function cm(e,t){switch(e){case"focusin":case"focusout":Vn=null;break;case"dragenter":case"dragleave":Kn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":xr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sr.delete(t.pointerId)}}function Er(e,t,n,a,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[u]},t!==null&&(t=Ra(t),t!==null&&im(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function B0(e,t,n,a,u){switch(t){case"focusin":return Vn=Er(Vn,e,t,n,a,u),!0;case"dragenter":return Kn=Er(Kn,e,t,n,a,u),!0;case"mouseover":return Qn=Er(Qn,e,t,n,a,u),!0;case"pointerover":var c=u.pointerId;return xr.set(c,Er(xr.get(c)||null,e,t,n,a,u)),!0;case"gotpointercapture":return c=u.pointerId,Sr.set(c,Er(Sr.get(c)||null,e,t,n,a,u)),!0}return!1}function om(e){var t=ka(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,wf(e.priority,function(){sm(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,wf(e.priority,function(){sm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hc(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Gs=a,n.target.dispatchEvent(a),Gs=null}else return t=Ra(n),t!==null&&im(t),e.blockedOn=n,!1;t.shift()}return!0}function fm(e,t,n){Vi(e)&&n.delete(t)}function H0(){Yc=!1,Vn!==null&&Vi(Vn)&&(Vn=null),Kn!==null&&Vi(Kn)&&(Kn=null),Qn!==null&&Vi(Qn)&&(Qn=null),xr.forEach(fm),Sr.forEach(fm)}function Ki(e,t){e.blockedOn===t&&(e.blockedOn=null,Yc||(Yc=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,H0)))}var Qi=null;function dm(e){Qi!==e&&(Qi=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Qi===e&&(Qi=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],u=e[t+2];if(typeof a!="function"){if(Gc(a||n)===null)continue;break}var c=Ra(n);c!==null&&(e.splice(t,3),t-=3,Hu(c,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function hl(e){function t(w){return Ki(w,e)}Vn!==null&&Ki(Vn,e),Kn!==null&&Ki(Kn,e),Qn!==null&&Ki(Qn,e),xr.forEach(t),Sr.forEach(t);for(var n=0;n<Jn.length;n++){var a=Jn[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Jn.length&&(n=Jn[0],n.blockedOn===null);)om(n),n.blockedOn===null&&Jn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var u=n[a],c=n[a+1],y=u[mt]||null;if(typeof c=="function")y||dm(n);else if(y){var b=null;if(c&&c.hasAttribute("formAction")){if(u=c,y=c[mt]||null)b=y.formAction;else if(Gc(u)!==null)continue}else b=y.action;typeof b=="function"?n[a+1]=b:(n.splice(a,3),a-=3),dm(n)}}}function hm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(y){return u=y})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function qc(e){this._internalRoot=e}Ji.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=Rt();lm(n,a,e,t,null,null)},Ji.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lm(e.current,2,null,e,null,null),ki(),t[Oa]=null}};function Ji(e){this._internalRoot=e}Ji.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Jn.length&&t!==0&&t<Jn[n].priority;n++);Jn.splice(n,0,e),n===0&&om(e)}};var gm=i.version;if(gm!=="19.2.4")throw Error(s(527,gm,"19.2.4"));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var G0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wi.isDisabled&&Wi.supportsFiber)try{kl=Wi.inject(G0),wt=Wi}catch{}}return wr.createRoot=function(e,t){if(!o(e))throw Error(s(299));var n=!1,a="",u=Sh,c=Eh,y=Nh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=nm(e,1,!1,null,null,n,a,null,u,c,y,hm),e[Oa]=t.current,Nc(e),new qc(t)},wr.hydrateRoot=function(e,t,n){if(!o(e))throw Error(s(299));var a=!1,u="",c=Sh,y=Eh,b=Nh,w=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(y=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(w=n.formState)),t=nm(e,1,!0,t,n??null,a,u,w,c,y,b,hm),t.context=am(null),n=t.current,a=Rt(),a=Rs(a),u=Ln(a),u.callback=null,Un(n,u,a),n=a,t.current.lanes=n,Ml(t,n),ln(t),e[Oa]=t.current,Nc(e),new Ji(t)},wr.version="19.2.4",wr}var wm;function J0(){if(wm)return Xc.exports;wm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Xc.exports=Q0(),Xc.exports}var W0=J0(),D=yo();const Pi=q0(D),Am=l=>{let i;const r=new Set,s=(m,v)=>{const x=typeof m=="function"?m(i):m;if(!Object.is(x,i)){const S=i;i=v??(typeof x!="object"||x===null)?x:Object.assign({},i,x),r.forEach(E=>E(i,S))}},o=()=>i,p={setState:s,getState:o,getInitialState:()=>g,subscribe:m=>(r.add(m),()=>r.delete(m))},g=i=l(s,o,p);return p},P0=(l=>l?Am(l):Am),ev=l=>l;function tv(l,i=ev){const r=Pi.useSyncExternalStore(l.subscribe,Pi.useCallback(()=>i(l.getState()),[l,i]),Pi.useCallback(()=>i(l.getInitialState()),[l,i]));return Pi.useDebugValue(r),r}const Tm=l=>{const i=P0(l),r=s=>tv(i,s);return Object.assign(r,i),r},nv=(l=>l?Tm(l):Tm);function Dt(l){return l.stage?`${l.stage}:${l.path}`:l.path}function gl(l){return l.startsWith("staged:")?l.slice(7):l.startsWith("unstaged:")?l.slice(9):l}const Kc=["unreviewed","reviewed","approved","needs_changes"],Fe=nv((l,i)=>({reviewId:null,diffSet:null,rawDiff:null,briefing:null,metadata:null,selectedFile:null,connectionStatus:"connecting",viewMode:"unified",fileStatuses:{},comments:[],activeCommentKey:null,focusedAnnotationId:null,draftComment:null,theme:localStorage.getItem("diffprism-theme")??"dark",isWatchMode:!1,watchSubmitted:!1,hasUnreviewedChanges:!0,focusedHunkIndex:null,hunkCount:0,compareRef:null,annotations:[],showHotkeyGuide:!1,showWorkflowTips:!1,isServerMode:!1,sessions:[],activeSessionId:null,initReview:r=>{const s=r.diffSet.files.length>0?Dt(r.diffSet.files[0]):null,o={};for(const d of r.diffSet.files)o[Dt(d)]="unreviewed";l({reviewId:r.reviewId,diffSet:r.diffSet,rawDiff:r.rawDiff,briefing:r.briefing,metadata:r.metadata,selectedFile:s,fileStatuses:o,comments:[],annotations:[],activeCommentKey:null,draftComment:null,focusedHunkIndex:null,hunkCount:0,compareRef:null,isWatchMode:r.watchMode??!1,watchSubmitted:!1,hasUnreviewedChanges:!0,activeSessionId:r.reviewId})},selectFile:r=>{l({selectedFile:r,focusedHunkIndex:null,hunkCount:0})},setConnectionStatus:r=>{l({connectionStatus:r})},setViewMode:r=>{l({viewMode:r})},setFileStatus:(r,s)=>{l(o=>({fileStatuses:{...o.fileStatuses,[r]:s}}))},cycleFileStatus:r=>{const s=i().fileStatuses[r]??"unreviewed",d=(Kc.indexOf(s)+1)%Kc.length;l(h=>({fileStatuses:{...h.fileStatuses,[r]:Kc[d]}}))},addComment:r=>{l(s=>({comments:[...s.comments,r]}))},updateComment:(r,s)=>{l(o=>({comments:o.comments.map((d,h)=>h===r?s:d)}))},deleteComment:r=>{l(s=>({comments:s.comments.filter((o,d)=>d!==r)}))},focusAnnotation:r=>{l({focusedAnnotationId:r})},setActiveCommentKey:r=>{l({activeCommentKey:r}),r===null&&l({draftComment:null})},setDraftComment:r=>{l({draftComment:r})},saveDraftComment:()=>{const{draftComment:r}=i();r&&r.body.trim()&&l(s=>({comments:[...s.comments,{file:r.file,line:r.line,body:r.body.trim(),type:r.type}],draftComment:null,activeCommentKey:null}))},toggleHotkeyGuide:()=>{l(r=>({showHotkeyGuide:!r.showHotkeyGuide}))},toggleWorkflowTips:()=>{l(r=>({showWorkflowTips:!r.showWorkflowTips}))},toggleTheme:()=>{const r=i().theme==="dark"?"light":"dark";localStorage.setItem("diffprism-theme",r),l({theme:r})},updateDiff:r=>{const s=i(),{changedFiles:o}=r,d={};for(const p of r.diffSet.files){const g=Dt(p);o.includes(g)?d[g]="unreviewed":d[g]=s.fileStatuses[g]??"unreviewed"}let{selectedFile:h}=s;h&&!r.diffSet.files.some(p=>Dt(p)===h)&&(h=r.diffSet.files.length>0?Dt(r.diffSet.files[0]):null),l({diffSet:r.diffSet,rawDiff:r.rawDiff,briefing:r.briefing,fileStatuses:d,selectedFile:h,focusedHunkIndex:null,hunkCount:0,hasUnreviewedChanges:!0})},updateContext:r=>{const s=i();s.metadata&&l({metadata:{...s.metadata,...r.reasoning!==void 0&&{reasoning:r.reasoning},...r.title!==void 0&&{title:r.title},...r.description!==void 0&&{description:r.description}}})},setWatchSubmitted:r=>{l({watchSubmitted:r,...r&&{hasUnreviewedChanges:!1}})},setServerMode:r=>{l({isServerMode:r})},setSessions:r=>{l({sessions:r})},addSession:r=>{l(s=>s.sessions.some(o=>o.id===r.id)?s:{sessions:[...s.sessions,r]})},updateSession:r=>{l(s=>{const o=s.sessions.findIndex(h=>h.id===r.id);if(o===-1)return s;const d=[...s.sessions];return d[o]=r,{sessions:d}})},removeSession:r=>{l(s=>{const o=s.sessions.filter(d=>d.id!==r);return s.activeSessionId===r?{sessions:o,reviewId:null,diffSet:null,rawDiff:null,briefing:null,metadata:null,selectedFile:null,fileStatuses:{},comments:[],activeCommentKey:null,draftComment:null,focusedHunkIndex:null,hunkCount:0,compareRef:null,activeSessionId:null,watchSubmitted:!1,hasUnreviewedChanges:!0}:{sessions:o}})},navigateHunk:r=>{const{focusedHunkIndex:s,hunkCount:o}=i();o!==0&&l(s===null?{focusedHunkIndex:r==="next"?0:o-1}:r==="next"?{focusedHunkIndex:Math.min(s+1,o-1)}:{focusedHunkIndex:Math.max(s-1,0)})},setHunkCount:r=>{l({hunkCount:r,focusedHunkIndex:null})},setFocusedHunkIndex:r=>{l({focusedHunkIndex:r})},setCompareRef:r=>{l({compareRef:r})},addAnnotation:r=>{l(s=>({annotations:[...s.annotations,r]}))},updateAnnotation:r=>{l(s=>({annotations:s.annotations.map(o=>o.id===r.id?r:o)}))},applyAnnotationDismissed:r=>{l(s=>({annotations:s.annotations.map(o=>o.id===r?{...o,dismissed:!0}:o)}))},dismissAnnotation:r=>{i().applyAnnotationDismissed(r);const o=new URLSearchParams(window.location.search).get("httpPort"),d=i().reviewId;o&&d&&fetch(`http://localhost:${o}/api/reviews/${d}/annotations/${r}/dismiss`,{method:"POST"}).catch(()=>{})},selectSession:r=>{l({activeSessionId:r})},clearReview:()=>{l({reviewId:null,diffSet:null,rawDiff:null,briefing:null,metadata:null,selectedFile:null,fileStatuses:{},comments:[],annotations:[],activeCommentKey:null,draftComment:null,focusedHunkIndex:null,hunkCount:0,compareRef:null,activeSessionId:null,watchSubmitted:!1,hasUnreviewedChanges:!0})}})),av=1e3;function lv(l){const i=D.useRef(null),r=D.useRef(l==null?void 0:l.onSessionAdded);r.current=l==null?void 0:l.onSessionAdded;const s=D.useRef(l==null?void 0:l.onSessionUpdated);s.current=l==null?void 0:l.onSessionUpdated;const o=D.useRef(l==null?void 0:l.onDiffUpdated);o.current=l==null?void 0:l.onDiffUpdated;const d=D.useRef(l==null?void 0:l.onAnnotationAdded);d.current=l==null?void 0:l.onAnnotationAdded;const{connectionStatus:h,setConnectionStatus:p,initReview:g,updateDiff:m,updateContext:v,setServerMode:x,setSessions:S,addSession:E,updateSession:A,removeSession:C,addAnnotation:_,applyAnnotationDismissed:U,updateAnnotation:I}=Fe();D.useEffect(()=>{const F=new URLSearchParams(window.location.search),H=F.get("wsPort"),R=F.get("serverMode")==="true",K=F.get("sessionId");if(!H){console.warn("No wsPort query parameter found"),p("disconnected");return}R&&x(!0);const ie=K?`ws://localhost:${H}?sessionId=${K}`:`ws://localhost:${H}`,re=ue=>{var ce,N,q,P;try{const J=JSON.parse(ue.data);if(J.type==="review:init")g(J.payload);else if(J.type==="diff:update"){m(J.payload);const Q=J.payload;(ce=o.current)==null||ce.call(o,Q.diffSet.files.length)}else J.type==="diff:error"?console.error("Diff error:",J.payload.error):J.type==="context:update"?v(J.payload):J.type==="session:list"?S(J.payload):J.type==="session:added"?(E(J.payload),window.focus(),(N=r.current)==null||N.call(r,J.payload)):J.type==="session:updated"?(A(J.payload),(q=s.current)==null||q.call(s,J.payload)):J.type==="session:removed"?C(J.payload.sessionId):J.type==="annotation:added"?(_(J.payload),(P=d.current)==null||P.call(d,J.payload)):J.type==="annotation:dismissed"?U(J.payload.annotationId):J.type==="annotation:updated"&&I(J.payload)}catch(J){console.error("Failed to parse WebSocket message:",J)}},fe=F.get("httpPort");let ne=!1,ee=null,W=null,k=!1;const L=async()=>{if(!fe)return null;try{const ue=await fetch(`http://localhost:${fe}/api/status`);return ue.ok?(await ue.json()).pid:(console.warn(`DiffPrism server status returned ${ue.status}`),null)}catch(ue){return console.warn("Could not read DiffPrism server status:",ue),null}},le=()=>{const ue=new WebSocket(ie);i.current=ue,ue.addEventListener("open",async()=>{p("connected");const ce=k;k=!0;const N=await L();if(ce&&W!==null&&N!==null&&N!==W){window.location.reload();return}if(N!==null&&(W=N),ce){const q=Fe.getState().activeSessionId;q&&ue.send(JSON.stringify({type:"session:select",payload:{sessionId:q}}))}}),ue.addEventListener("message",re),ue.addEventListener("close",()=>{p("disconnected"),ne||(ee=setTimeout(le,av))}),ue.addEventListener("error",()=>{p("disconnected")})};return le(),()=>{var ue;ne=!0,ee&&clearTimeout(ee),(ue=i.current)==null||ue.close(),i.current=null}},[p,g,m,v,x,S,E,A,C,_,U,I]);const O=D.useCallback(F=>{const H=i.current;if(!H||H.readyState!==WebSocket.OPEN){console.error("WebSocket is not connected");return}const R={type:"review:submit",payload:F};H.send(JSON.stringify(R))},[]),$=D.useCallback(F=>{const H=i.current;if(!H||H.readyState!==WebSocket.OPEN){console.error("WebSocket is not connected");return}const R={type:"session:select",payload:{sessionId:F}};H.send(JSON.stringify(R))},[]),Y=D.useCallback(F=>{const H=i.current;if(!H||H.readyState!==WebSocket.OPEN){console.error("WebSocket is not connected");return}const R={type:"session:close",payload:{sessionId:F}};H.send(JSON.stringify(R))},[]);return{sendResult:O,selectSession:$,closeSession:Y,connectionStatus:h}}const xp="diffprism-notifications";function rv(){try{return localStorage.getItem(xp)!=="disabled"}catch{return!0}}function Cm(l){try{localStorage.setItem(xp,l?"enabled":"disabled")}catch{}}function iv(l){const i=D.useRef(l==null?void 0:l.onSessionSelect);D.useEffect(()=>{i.current=l==null?void 0:l.onSessionSelect},[l==null?void 0:l.onSessionSelect]);const r=typeof globalThis.Notification<"u",[s,o]=D.useState(()=>r?Notification.permission:"denied"),[d,h]=D.useState(rv),p=D.useCallback(async()=>{if(!r)return"denied";const C=await Notification.requestPermission();return o(C),C},[r]);D.useEffect(()=>{if(!r||!d||Notification.permission!=="default")return;const A=()=>{document.removeEventListener("click",A,!0),p()};return document.addEventListener("click",A,!0),()=>document.removeEventListener("click",A,!0)},[r,d,p]);const g=D.useCallback(async()=>{if(!r||s==="denied")return;if(s==="default"){await p()==="granted"&&(h(!0),Cm(!0));return}const A=!d;h(A),Cm(A)},[r,s,d,p]),m=D.useCallback(async(A,C,_,U)=>{if(!r||document.hasFocus()||!d)return;let I=s;if(I==="default"&&(I=await p()),I!=="granted")return;const O=new Notification(A,{body:C,icon:"/favicon.svg",tag:_});O.onclick=()=>{window.focus(),U==null||U(),O.close()}},[r,d,s,p]),v=D.useCallback(async A=>{const C=A.title||"New Review Ready",_=[];A.branch&&_.push(A.branch),_.push(`${A.fileCount} file${A.fileCount!==1?"s":""}, +${A.additions} -${A.deletions}`),await m(C,_.join(" · "),A.id,()=>{var U;(U=i.current)==null||U.call(i,A.id)})},[m]),x=D.useCallback(async A=>{A.status==="submitted"&&await m("Review Submitted",A.title||`${A.fileCount} files reviewed`,`submitted-${A.id}`,()=>{var C;(C=i.current)==null||C.call(i,A.id)})},[m]),S=D.useCallback(async A=>{await m("Diff Updated",`${A} file${A!==1?"s":""} changed`,"diff-update")},[m]),E=D.useCallback(async A=>{await m(`Annotation from ${A.source.agent}`,`${A.file}:${A.line} — ${A.body.slice(0,100)}`,`annotation-${A.id}`)},[m]);return{permission:s,enabled:d,toggle:g,notifyNewSession:v,notifySessionUpdated:x,notifyDiffUpdated:S,notifyAnnotationAdded:E}}function sv(){const l=Fe(o=>o.selectedFile),i=Fe(o=>o.activeSessionId),r=Fe(o=>o.reviewId),s=D.useRef(null);D.useEffect(()=>{const o=i??r;if(!o)return;const d=new URLSearchParams(window.location.search).get("httpPort");if(!d)return;const h=`${o}:${l}`;h!==s.current&&(s.current=h,fetch(`http://localhost:${d}/api/reviews/${o}/focus`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:l})}).catch(()=>{}))},[l,i,r])}/**
|
|
50
|
+
* @license lucide-react v0.469.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const uv=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sp=(...l)=>l.filter((i,r,s)=>!!i&&i.trim()!==""&&s.indexOf(i)===r).join(" ").trim();/**
|
|
55
|
+
* @license lucide-react v0.469.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/var cv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
60
|
+
* @license lucide-react v0.469.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const ov=D.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:o="",children:d,iconNode:h,...p},g)=>D.createElement("svg",{ref:g,...cv,width:i,height:i,stroke:l,strokeWidth:s?Number(r)*24/Number(i):r,className:Sp("lucide",o),...p},[...h.map(([m,v])=>D.createElement(m,v)),...Array.isArray(d)?d:[d]]));/**
|
|
65
|
+
* @license lucide-react v0.469.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const ye=(l,i)=>{const r=D.forwardRef(({className:s,...o},d)=>D.createElement(ov,{ref:d,iconNode:i,className:Sp(`lucide-${uv(l)}`,s),...o}));return r.displayName=`${l}`,r};/**
|
|
70
|
+
* @license lucide-react v0.469.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const fv=ye("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
75
|
+
* @license lucide-react v0.469.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const dv=ye("BellOff",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]);/**
|
|
80
|
+
* @license lucide-react v0.469.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const hv=ye("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
|
|
85
|
+
* @license lucide-react v0.469.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const bo=ye("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
90
|
+
* @license lucide-react v0.469.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const gv=ye("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
95
|
+
* @license lucide-react v0.469.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const El=ye("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
100
|
+
* @license lucide-react v0.469.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const gs=ye("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
105
|
+
* @license lucide-react v0.469.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const mv=ye("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
110
|
+
* @license lucide-react v0.469.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const vo=ye("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
115
|
+
* @license lucide-react v0.469.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const Aa=ye("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
120
|
+
* @license lucide-react v0.469.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const pv=ye("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
125
|
+
* @license lucide-react v0.469.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const xo=ye("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
130
|
+
* @license lucide-react v0.469.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const Ep=ye("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
135
|
+
* @license lucide-react v0.469.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const yv=ye("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
140
|
+
* @license lucide-react v0.469.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const bv=ye("Columns2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/**
|
|
145
|
+
* @license lucide-react v0.469.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const vv=ye("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
150
|
+
* @license lucide-react v0.469.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const xv=ye("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
|
|
155
|
+
* @license lucide-react v0.469.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const So=ye("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
160
|
+
* @license lucide-react v0.469.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const Sv=ye("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
165
|
+
* @license lucide-react v0.469.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const Eo=ye("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
170
|
+
* @license lucide-react v0.469.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const Tl=ye("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
|
|
175
|
+
* @license lucide-react v0.469.0 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const Ev=ye("FileMinus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}]]);/**
|
|
180
|
+
* @license lucide-react v0.469.0 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const Nv=ye("FilePenLine",[["path",{d:"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",key:"142zxg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]]);/**
|
|
185
|
+
* @license lucide-react v0.469.0 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const wv=ye("FilePlus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);/**
|
|
190
|
+
* @license lucide-react v0.469.0 - ISC
|
|
191
|
+
*
|
|
192
|
+
* This source code is licensed under the ISC license.
|
|
193
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
+
*/const _m=ye("FlaskConical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]);/**
|
|
195
|
+
* @license lucide-react v0.469.0 - ISC
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the ISC license.
|
|
198
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
+
*/const Na=ye("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
200
|
+
* @license lucide-react v0.469.0 - ISC
|
|
201
|
+
*
|
|
202
|
+
* This source code is licensed under the ISC license.
|
|
203
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
+
*/const Av=ye("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
205
|
+
* @license lucide-react v0.469.0 - ISC
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the ISC license.
|
|
208
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/const jm=ye("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
|
210
|
+
* @license lucide-react v0.469.0 - ISC
|
|
211
|
+
*
|
|
212
|
+
* This source code is licensed under the ISC license.
|
|
213
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
+
*/const Tn=ye("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
215
|
+
* @license lucide-react v0.469.0 - ISC
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the ISC license.
|
|
218
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/const Om=ye("GitCommitHorizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/**
|
|
220
|
+
* @license lucide-react v0.469.0 - ISC
|
|
221
|
+
*
|
|
222
|
+
* This source code is licensed under the ISC license.
|
|
223
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
+
*/const ta=ye("GitPullRequest",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]);/**
|
|
225
|
+
* @license lucide-react v0.469.0 - ISC
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the ISC license.
|
|
228
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/const No=ye("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
|
|
230
|
+
* @license lucide-react v0.469.0 - ISC
|
|
231
|
+
*
|
|
232
|
+
* This source code is licensed under the ISC license.
|
|
233
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
+
*/const no=ye("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
235
|
+
* @license lucide-react v0.469.0 - ISC
|
|
236
|
+
*
|
|
237
|
+
* This source code is licensed under the ISC license.
|
|
238
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
+
*/const Nl=ye("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
240
|
+
* @license lucide-react v0.469.0 - ISC
|
|
241
|
+
*
|
|
242
|
+
* This source code is licensed under the ISC license.
|
|
243
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
+
*/const Tv=ye("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
245
|
+
* @license lucide-react v0.469.0 - ISC
|
|
246
|
+
*
|
|
247
|
+
* This source code is licensed under the ISC license.
|
|
248
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
+
*/const km=ye("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
|
|
250
|
+
* @license lucide-react v0.469.0 - ISC
|
|
251
|
+
*
|
|
252
|
+
* This source code is licensed under the ISC license.
|
|
253
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
+
*/const Cv=ye("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
255
|
+
* @license lucide-react v0.469.0 - ISC
|
|
256
|
+
*
|
|
257
|
+
* This source code is licensed under the ISC license.
|
|
258
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
259
|
+
*/const Np=ye("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
260
|
+
* @license lucide-react v0.469.0 - ISC
|
|
261
|
+
*
|
|
262
|
+
* This source code is licensed under the ISC license.
|
|
263
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
+
*/const _v=ye("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
|
265
|
+
* @license lucide-react v0.469.0 - ISC
|
|
266
|
+
*
|
|
267
|
+
* This source code is licensed under the ISC license.
|
|
268
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
269
|
+
*/const jv=ye("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
270
|
+
* @license lucide-react v0.469.0 - ISC
|
|
271
|
+
*
|
|
272
|
+
* This source code is licensed under the ISC license.
|
|
273
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
+
*/const Ov=ye("Rows2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]]);/**
|
|
275
|
+
* @license lucide-react v0.469.0 - ISC
|
|
276
|
+
*
|
|
277
|
+
* This source code is licensed under the ISC license.
|
|
278
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
279
|
+
*/const Rm=ye("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
280
|
+
* @license lucide-react v0.469.0 - ISC
|
|
281
|
+
*
|
|
282
|
+
* This source code is licensed under the ISC license.
|
|
283
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
284
|
+
*/const kv=ye("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
285
|
+
* @license lucide-react v0.469.0 - ISC
|
|
286
|
+
*
|
|
287
|
+
* This source code is licensed under the ISC license.
|
|
288
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
+
*/const es=ye("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
|
|
290
|
+
* @license lucide-react v0.469.0 - ISC
|
|
291
|
+
*
|
|
292
|
+
* This source code is licensed under the ISC license.
|
|
293
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
+
*/const Rv=ye("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
295
|
+
* @license lucide-react v0.469.0 - ISC
|
|
296
|
+
*
|
|
297
|
+
* This source code is licensed under the ISC license.
|
|
298
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
+
*/const Mv=ye("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
300
|
+
* @license lucide-react v0.469.0 - ISC
|
|
301
|
+
*
|
|
302
|
+
* This source code is licensed under the ISC license.
|
|
303
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
304
|
+
*/const Dv=ye("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
305
|
+
* @license lucide-react v0.469.0 - ISC
|
|
306
|
+
*
|
|
307
|
+
* This source code is licensed under the ISC license.
|
|
308
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
+
*/const wl=ye("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
310
|
+
* @license lucide-react v0.469.0 - ISC
|
|
311
|
+
*
|
|
312
|
+
* This source code is licensed under the ISC license.
|
|
313
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
314
|
+
*/const zv=ye("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
315
|
+
* @license lucide-react v0.469.0 - ISC
|
|
316
|
+
*
|
|
317
|
+
* This source code is licensed under the ISC license.
|
|
318
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
319
|
+
*/const kr=ye("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function wo(){const l=D.useMemo(()=>new URLSearchParams(window.location.search).get("httpPort"),[]),i=l!==null,r=D.useCallback(async m=>{if(!l)return null;try{const v=await fetch(`http://localhost:${l}/api/reviews/${m}/refs`);return v.ok?await v.json():null}catch{return null}},[l]),s=D.useCallback(async(m,v)=>{if(!l)return{ok:!1,error:"Not connected to server"};try{const x=await fetch(`http://localhost:${l}/api/reviews/${m}/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ref:v})});return x.ok?{ok:!0}:{ok:!1,error:(await x.json().catch(()=>({}))).error??"Comparison failed"}}catch{return{ok:!1,error:"Failed to connect to server"}}},[l]),o=D.useCallback(async m=>{if(!l)return{ok:!1,error:"Not connected to server"};try{const v=await fetch(`http://localhost:${l}/api/reviews/${m}/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reset:!0})});return v.ok?{ok:!0}:{ok:!1,error:(await v.json().catch(()=>({}))).error??"Reset failed"}}catch{return{ok:!1,error:"Failed to connect to server"}}},[l]),d=D.useCallback(async(m,v)=>{if(!l)return{ok:!1,error:"Not connected to server"};try{const x=await fetch(`http://localhost:${l}${m}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)});return x.ok?{ok:!0}:{ok:!1,error:(await x.json().catch(()=>({}))).error??"Request failed"}}catch{return{ok:!1,error:"Failed to connect to server"}}},[l]),h=D.useCallback((m,v)=>d(`/api/reviews/${m}/annotations`,{...v,type:"question",category:"other",author:"reviewer",source:{agent:"reviewer",tool:"dashboard"}}),[d]),p=D.useCallback((m,v,x)=>d(`/api/reviews/${m}/annotations/${v}/replies`,{author:"reviewer",body:x}),[d]),g=D.useCallback(async(m,v)=>{if(!l)return{ok:!1,error:"Not connected to server"};try{const x=await fetch(`http://localhost:${l}/api/reviews/${m}/github-review`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)}),S=await x.json().catch(()=>({}));return x.ok&&S.url?{ok:!0,url:S.url}:{ok:!1,error:S.error??`Server returned ${x.status}`}}catch{return{ok:!1,error:"Failed to connect to server"}}},[l]);return{isAvailable:i,fetchRefs:r,compareAgainst:s,resetCompare:o,startThread:h,replyToThread:p,submitPrReview:g}}function Lv(){const[l,i]=D.useState(!1),[r,s]=D.useState(null),[o,d]=D.useState(!1),[h,p]=D.useState(!1),[g,m]=D.useState(null),[v,x]=D.useState(""),[S,E]=D.useState("branches"),A=D.useRef(null),C=D.useRef(null),{activeSessionId:_,compareRef:U,setCompareRef:I,metadata:O}=Fe(),{isAvailable:$,fetchRefs:Y,compareAgainst:F,resetCompare:H}=wo(),R=U??"working copy",K=D.useCallback(async()=>{if(!_)return;i(!0),x(""),m(null),d(!0);const L=await Y(_);s(L),d(!1)},[_,Y]),ie=D.useCallback(async L=>{if(!_)return;p(!0),m(null);const le=await F(_,L);le.ok?(I(L),i(!1)):m(le.error??"Comparison failed"),p(!1)},[_,F,I]),re=D.useCallback(async()=>{if(!_)return;p(!0),m(null);const L=await H(_);L.ok?(I(null),i(!1)):m(L.error??"Reset failed"),p(!1)},[_,H,I]);D.useEffect(()=>{if(!l)return;function L(le){A.current&&!A.current.contains(le.target)&&i(!1)}return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[l]),D.useEffect(()=>{if(!l)return;function L(le){le.key==="Escape"&&i(!1)}return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[l]),D.useEffect(()=>{l&&C.current&&C.current.focus()},[l]);const fe=!!(O!=null&&O.githubPr);if(!$||fe)return O!=null&&O.currentBranch?f.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs bg-neutral/15 text-neutral border border-neutral/30 font-mono",children:[f.jsx(Tn,{className:"w-3 h-3"}),O.currentBranch]}):null;const ne=v.toLowerCase(),ee=(r==null?void 0:r.branches.local.filter(L=>L.toLowerCase().includes(ne)))??[],W=(r==null?void 0:r.branches.remote.filter(L=>L.toLowerCase().includes(ne)))??[],k=(r==null?void 0:r.commits.filter(L=>L.shortHash.toLowerCase().includes(ne)||L.subject.toLowerCase().includes(ne)||L.author.toLowerCase().includes(ne)))??[];return f.jsxs("div",{className:"relative",ref:A,children:[f.jsxs("button",{onClick:()=>l?i(!1):K(),disabled:h,className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs bg-neutral/15 text-neutral border border-neutral/30 font-mono hover:bg-neutral/25 transition-colors cursor-pointer disabled:opacity-50",title:"Compare against a different ref",children:[h?f.jsx(no,{className:"w-3 h-3 animate-spin"}):f.jsx(Tn,{className:"w-3 h-3"}),f.jsx("span",{className:"max-w-[180px] truncate",children:R}),f.jsx(gs,{className:"w-3 h-3"})]}),l&&f.jsxs("div",{className:"absolute top-full mt-1 right-0 z-50 w-80 bg-surface border border-border rounded-lg shadow-lg overflow-hidden",children:[f.jsx("div",{className:"p-2 border-b border-border",children:f.jsx("input",{ref:C,type:"text",value:v,onChange:L=>x(L.target.value),placeholder:"Filter branches or commits...",className:"w-full px-2 py-1.5 text-xs bg-background border border-border rounded text-text-primary placeholder:text-text-secondary focus:outline-none focus:border-accent"})}),f.jsxs("div",{className:"flex border-b border-border",children:[f.jsxs("button",{onClick:()=>E("branches"),className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors cursor-pointer ${S==="branches"?"text-accent border-b-2 border-accent":"text-text-secondary hover:text-text-primary"}`,children:[f.jsx(Tn,{className:"w-3 h-3 inline mr-1"}),"Branches"]}),f.jsxs("button",{onClick:()=>E("commits"),className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors cursor-pointer ${S==="commits"?"text-accent border-b-2 border-accent":"text-text-secondary hover:text-text-primary"}`,children:[f.jsx(Om,{className:"w-3 h-3 inline mr-1"}),"Commits"]})]}),g&&f.jsxs("div",{className:"px-3 py-2 flex items-center gap-2 bg-danger/10 border-b border-danger/20 text-danger text-xs",children:[f.jsx(Aa,{className:"w-3.5 h-3.5 flex-shrink-0"}),f.jsx("span",{children:g})]}),f.jsx("div",{className:"max-h-64 overflow-y-auto",children:o?f.jsxs("div",{className:"flex items-center justify-center py-6",children:[f.jsx(no,{className:"w-4 h-4 animate-spin text-text-secondary"}),f.jsx("span",{className:"ml-2 text-xs text-text-secondary",children:"Loading refs..."})]}):S==="branches"?f.jsxs("div",{children:[ee.length>0&&f.jsxs("div",{children:[f.jsx("div",{className:"px-3 py-1.5 text-[10px] font-medium uppercase tracking-wide text-text-secondary bg-background/50",children:"Local"}),ee.map(L=>f.jsxs("button",{onClick:()=>ie(L),className:`w-full px-3 py-1.5 text-xs text-left flex items-center gap-2 hover:bg-text-primary/5 transition-colors cursor-pointer ${U===L?"bg-accent/10 text-accent":"text-text-primary"}`,children:[f.jsx(Tn,{className:"w-3 h-3 flex-shrink-0 text-text-secondary"}),f.jsx("span",{className:"font-mono truncate",children:L}),L===(r==null?void 0:r.currentBranch)&&f.jsx("span",{className:"ml-auto text-[10px] text-text-secondary",children:"current"})]},L))]}),W.length>0&&f.jsxs("div",{children:[f.jsx("div",{className:"px-3 py-1.5 text-[10px] font-medium uppercase tracking-wide text-text-secondary bg-background/50",children:"Remote"}),W.map(L=>f.jsxs("button",{onClick:()=>ie(L),className:`w-full px-3 py-1.5 text-xs text-left flex items-center gap-2 hover:bg-text-primary/5 transition-colors cursor-pointer ${U===L?"bg-accent/10 text-accent":"text-text-primary"}`,children:[f.jsx(Tn,{className:"w-3 h-3 flex-shrink-0 text-text-secondary"}),f.jsx("span",{className:"font-mono truncate",children:L})]},L))]}),ee.length===0&&W.length===0&&f.jsx("div",{className:"px-3 py-4 text-xs text-text-secondary text-center",children:"No branches found"})]}):f.jsx("div",{children:k.length>0?k.map(L=>f.jsxs("button",{onClick:()=>ie(L.hash),className:`w-full px-3 py-1.5 text-xs text-left flex items-start gap-2 hover:bg-text-primary/5 transition-colors cursor-pointer ${U===L.hash?"bg-accent/10 text-accent":"text-text-primary"}`,children:[f.jsx(Om,{className:"w-3 h-3 flex-shrink-0 mt-0.5 text-text-secondary"}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-mono text-accent",children:L.shortHash}),f.jsx("span",{className:"truncate",children:L.subject})]}),f.jsxs("div",{className:"text-[10px] text-text-secondary mt-0.5",children:[L.author," · ",Uv(L.date)]})]})]},L.hash)):f.jsx("div",{className:"px-3 py-4 text-xs text-text-secondary text-center",children:"No commits found"})})}),U&&f.jsx("div",{className:"border-t border-border p-2",children:f.jsxs("button",{onClick:re,className:"w-full px-2 py-1.5 text-xs text-text-secondary hover:text-text-primary flex items-center justify-center gap-1.5 rounded hover:bg-text-primary/5 transition-colors cursor-pointer",children:[f.jsx(jv,{className:"w-3 h-3"}),"Reset to working copy"]})})]})]})}function Uv(l){const i=new Date(l),s=new Date().getTime()-i.getTime(),o=Math.floor(s/1e3),d=Math.floor(o/60),h=Math.floor(d/60),p=Math.floor(h/24);return o<60?"just now":d<60?`${d}m ago`:h<24?`${h}h ago`:p<30?`${p}d ago`:i.toLocaleDateString()}const Mm={pending:"bg-warning/20 text-warning border border-warning/30",in_review:"bg-accent/20 text-accent border border-accent/30",changes_requested:"bg-danger/20 text-danger border border-danger/30",approved:"bg-success/20 text-success border border-success/30",approved_with_comments:"bg-success/20 text-success border border-success/30",dismissed:"bg-neutral/20 text-neutral border border-neutral/30",submitted:"bg-success/20 text-success border border-success/30"},Bv={must_fix:"bg-danger/15 text-danger border-danger/30",suggestion:"bg-warning/15 text-warning border-warning/30",question:"bg-info/15 text-info border-info/30",nitpick:"bg-neutral/15 text-neutral border-neutral/30"},Hv={added:"bg-success/15 text-success border-success/30",modified:"bg-warning/15 text-warning border-warning/30",deleted:"bg-danger/15 text-danger border-danger/30",renamed:"bg-accent/15 text-accent border-accent/30"},Gv={added:"text-success",modified:"text-warning",deleted:"text-danger",renamed:"text-accent"},Yv={reviewed:"text-info",approved:"text-success",needs_changes:"text-warning"},os={security:"text-danger",performance:"text-perf",convention:"text-info",correctness:"text-warning",complexity:"text-accent","test-coverage":"text-info",documentation:"text-neutral",other:"text-neutral"},Dm={security:"bg-danger/15 text-danger border-danger/30",performance:"bg-perf/15 text-perf border-perf/30",convention:"bg-info/15 text-info border-info/30",correctness:"bg-warning/15 text-warning border-warning/30",complexity:"bg-accent/15 text-accent border-accent/30","test-coverage":"bg-info/15 text-info border-info/30",documentation:"bg-neutral/15 text-neutral border-neutral/30",other:"bg-neutral/15 text-neutral border-neutral/30"},ea={approve:"bg-success/15 text-success border border-success/30 hover:bg-success/25 hover:border-success/50",reject:"bg-danger/15 text-danger border border-danger/30 hover:bg-danger/25 hover:border-danger/50",comment:"bg-info/15 text-info border border-info/30 hover:bg-info/25 hover:border-info/50",dismiss:"bg-neutral/15 text-neutral border border-neutral/30 hover:bg-neutral/25 hover:border-neutral/50"},Pn={security:"bg-danger/15 text-danger border border-danger/30",breaking:"bg-danger/15 text-danger border border-danger/30",modules:"bg-info/15 text-info border border-info/30",deps:"bg-warning/15 text-warning border border-warning/30",complexity:"bg-perf/15 text-perf border border-perf/30",coverage:"bg-warning/15 text-warning border border-warning/30",patterns:"bg-accent/15 text-accent border border-accent/30"},ml={security:"text-danger",breaking:"text-danger",deps:"text-warning",complexity:"text-perf",coverage:"text-warning",patterns:"text-accent"},qv={staged:"bg-success/20 text-success border-success/30",unstaged:"bg-warning/20 text-warning border-warning/30"},Iv={critical:"bg-danger/15 text-danger border border-danger/30",warning:"bg-warning/15 text-warning border border-warning/30"},Xv={critical:"text-danger",warning:"text-warning"};function Fv(){const[l,i]=D.useState(!1),{briefing:r,metadata:s,isServerMode:o,clearReview:d,sessions:h,activeSessionId:p}=Fe(),g=h.find(R=>R.id===p),m=g==null?void 0:g.branch,v=g!=null&&g.projectPath?g.projectPath.split("/").filter(Boolean).pop():void 0;if(!r)return null;const{impact:x,verification:S,complexity:E,testCoverage:A,patterns:C}=r,_=x.breakingChanges.length>0,U=x.newDependencies.length>0,I=x.affectedModules.length,O=(E==null?void 0:E.filter(R=>R.score>=5))??[],$=(A==null?void 0:A.filter(R=>R.testFile===null))??[],Y=(C==null?void 0:C.filter(R=>R.severity))??[],F=(C==null?void 0:C.filter(R=>!R.severity))??[],H=F.length;return f.jsxs("div",{className:"bg-surface border-b border-border flex-shrink-0",children:[f.jsxs("div",{className:"flex items-center",children:[o&&f.jsx("button",{onClick:d,className:"px-3 py-2.5 text-text-secondary hover:text-text-primary transition-colors cursor-pointer border-r border-border",title:"Back to sessions",children:f.jsx(fv,{className:"w-4 h-4"})}),f.jsxs("button",{onClick:()=>i(!l),className:"flex-1 px-4 py-2.5 flex items-center gap-3 cursor-pointer hover:bg-text-primary/5 transition-colors",children:[f.jsx("span",{className:"text-text-primary text-sm flex-1 text-left truncate",children:r.summary}),f.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(m||v)&&f.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs bg-text-primary/5 text-text-secondary max-w-[22rem]",title:g==null?void 0:g.projectPath,children:[f.jsx(Tn,{className:"w-3 h-3 flex-shrink-0"}),v&&f.jsx("span",{className:"truncate",children:v}),v&&m&&f.jsx("span",{className:"opacity-40",children:"/"}),m&&f.jsx("span",{className:"truncate",children:m})]}),Y.length>0&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-semibold ${Pn.security}`,children:[f.jsx(es,{className:"w-3 h-3"}),Y.length," security flag",Y.length!==1?"s":""]}),I>0&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Pn.modules}`,children:[f.jsx(Na,{className:"w-3 h-3"}),I," module",I!==1?"s":""]}),_&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Pn.breaking}`,children:[f.jsx(wl,{className:"w-3 h-3"}),"breaking"]}),U&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Pn.deps}`,children:[f.jsx(km,{className:"w-3 h-3"}),x.newDependencies.length," new dep",x.newDependencies.length!==1?"s":""]}),O.length>0&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Pn.complexity}`,children:[f.jsx(jm,{className:"w-3 h-3"}),O.length," complex"]}),$.length>0&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Pn.coverage}`,children:[f.jsx(es,{className:"w-3 h-3"}),$.length," untested"]}),H>0&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Pn.patterns}`,children:[f.jsx(Rm,{className:"w-3 h-3"}),H," pattern",H!==1?"s":""]}),l?f.jsx(vo,{className:"w-4 h-4 text-text-secondary"}):f.jsx(gs,{className:"w-4 h-4 text-text-secondary"})]})]}),f.jsx("div",{className:"px-3 py-2.5 border-l border-border flex-shrink-0",children:f.jsx(Lv,{})})]}),(s==null?void 0:s.githubPr)&&f.jsxs("div",{className:"px-4 py-2 border-t border-border/50 flex items-center gap-3 text-xs",children:[f.jsx(ta,{className:"w-3.5 h-3.5 text-accent flex-shrink-0"}),f.jsxs("span",{className:"text-text-primary font-medium truncate",children:[s.githubPr.owner,"/",s.githubPr.repo,"#",s.githubPr.number]}),f.jsxs("span",{className:"text-text-secondary",children:["by ",s.githubPr.author]}),f.jsxs("span",{className:"text-text-secondary font-mono",children:[s.githubPr.baseBranch," ← ",s.githubPr.headBranch]}),f.jsxs("a",{href:s.githubPr.url,target:"_blank",rel:"noopener noreferrer",className:"ml-auto flex items-center gap-1 text-accent hover:text-accent/80 transition-colors flex-shrink-0",children:["View on GitHub",f.jsx(So,{className:"w-3 h-3"})]})]}),l&&f.jsxs("div",{className:"px-4 pb-3 grid grid-cols-2 gap-x-6 gap-y-3 border-t border-border/50 pt-3",children:[Y.length>0&&f.jsxs("div",{className:"col-span-2",children:[f.jsxs("h4",{className:`${ml.security} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(es,{className:"w-3.5 h-3.5"}),"Security Flags"]}),f.jsx("ul",{className:"space-y-0.5",children:Y.map((R,K)=>f.jsxs("li",{className:"text-xs",children:[f.jsx("span",{className:`inline-block px-1 py-0.5 rounded text-[10px] font-medium uppercase mr-1.5 ${Iv[R.severity??"warning"]}`,children:R.pattern.replace("_"," ")}),f.jsx("span",{className:`text-[10px] font-medium uppercase mr-1.5 ${Xv[R.severity??"warning"]}`,children:R.severity}),f.jsxs("span",{className:"font-mono text-text-secondary",children:[R.file,":",R.line]}),f.jsxs("span",{className:"text-text-secondary ml-1 truncate",children:["— ",R.content]})]},`${R.file}:${R.line}:${K}`))})]}),x.affectedModules.length>0&&f.jsxs("div",{children:[f.jsxs("h4",{className:"text-text-secondary text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5",children:[f.jsx(Na,{className:"w-3.5 h-3.5"}),"Affected Modules"]}),f.jsx("ul",{className:"space-y-0.5",children:x.affectedModules.map(R=>f.jsx("li",{className:"text-text-primary text-xs font-mono",children:R},R))})]}),x.affectedTests.length>0&&f.jsxs("div",{children:[f.jsxs("h4",{className:"text-text-secondary text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5",children:[f.jsx(_m,{className:"w-3.5 h-3.5"}),"Affected Tests"]}),f.jsx("ul",{className:"space-y-0.5",children:x.affectedTests.map(R=>f.jsx("li",{className:"text-text-primary text-xs font-mono truncate",children:R},R))})]}),_&&f.jsxs("div",{children:[f.jsxs("h4",{className:`${ml.breaking} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(wl,{className:"w-3.5 h-3.5"}),"Breaking Changes"]}),f.jsx("ul",{className:"space-y-0.5",children:x.breakingChanges.map(R=>f.jsx("li",{className:"text-danger text-xs",children:R},R))})]}),U&&f.jsxs("div",{children:[f.jsxs("h4",{className:`${ml.deps} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(km,{className:"w-3.5 h-3.5"}),"New Dependencies"]}),f.jsx("ul",{className:"space-y-0.5",children:x.newDependencies.map(R=>f.jsx("li",{className:"text-text-primary text-xs font-mono",children:R},R))})]}),O.length>0&&f.jsxs("div",{children:[f.jsxs("h4",{className:`${ml.complexity} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(jm,{className:"w-3.5 h-3.5"}),"High Complexity"]}),f.jsx("ul",{className:"space-y-0.5",children:O.map(R=>f.jsxs("li",{className:"text-text-primary text-xs",children:[f.jsx("span",{className:"font-mono",children:R.path}),f.jsxs("span",{className:"text-perf ml-1",children:["(",R.score,"/10)"]}),R.factors.length>0&&f.jsxs("span",{className:"text-text-secondary ml-1",children:["— ",R.factors.join(", ")]})]},R.path))})]}),$.length>0&&f.jsxs("div",{children:[f.jsxs("h4",{className:`${ml.coverage} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(es,{className:"w-3.5 h-3.5"}),"Missing Test Changes"]}),f.jsx("ul",{className:"space-y-0.5",children:$.map(R=>f.jsx("li",{className:"text-text-primary text-xs font-mono",children:R.sourceFile},R.sourceFile))})]}),F.length>0&&f.jsxs("div",{children:[f.jsxs("h4",{className:`${ml.patterns} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(Rm,{className:"w-3.5 h-3.5"}),"Pattern Flags"]}),f.jsx("ul",{className:"space-y-0.5",children:F.map((R,K)=>f.jsxs("li",{className:"text-xs",children:[f.jsx("span",{className:`inline-block px-1 py-0.5 rounded text-[10px] font-medium uppercase mr-1.5 ${Pn.patterns}`,children:R.pattern}),f.jsxs("span",{className:"font-mono text-text-secondary",children:[R.file,R.line>0?`:${R.line}`:""]}),R.line>0&&f.jsxs("span",{className:"text-text-secondary ml-1 truncate",children:["— ",R.content]})]},`${R.file}:${R.line}:${K}`))})]}),f.jsxs("div",{children:[f.jsxs("h4",{className:"text-text-secondary text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5",children:[f.jsx(_m,{className:"w-3.5 h-3.5"}),"Verification"]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Qc,{label:"Tests",value:S.testsPass}),f.jsx(Qc,{label:"Types",value:S.typeCheck}),f.jsx(Qc,{label:"Lint",value:S.lintClean})]})]})]})]})}function Qc({label:l,value:i}){return i===null?f.jsxs("span",{className:"text-text-secondary text-xs",children:[l,": ",f.jsx("span",{className:"font-mono",children:"—"})]}):f.jsxs("span",{className:`text-xs ${i?"text-success":"text-danger"}`,children:[l,": ",f.jsx("span",{className:"font-mono",children:i?"pass":"fail"})]})}function $v(){const[l,i]=D.useState(!1),{metadata:r}=Fe();return r!=null&&r.reasoning?f.jsxs("div",{className:"bg-surface border-b border-border flex-shrink-0",children:[f.jsxs("button",{onClick:()=>i(!l),className:"w-full px-4 py-2.5 flex items-center gap-3 cursor-pointer hover:bg-text-primary/5 transition-colors",children:[f.jsx(gv,{className:"w-4 h-4 text-accent flex-shrink-0"}),f.jsx("span",{className:"text-text-primary text-sm flex-1 text-left truncate",children:"Agent Reasoning"}),l?f.jsx(vo,{className:"w-4 h-4 text-text-secondary"}):f.jsx(gs,{className:"w-4 h-4 text-text-secondary"})]}),l&&f.jsx("div",{className:"px-4 pb-3 border-t border-border/50 pt-3",children:f.jsx("p",{className:"text-text-secondary text-sm whitespace-pre-wrap",children:r.reasoning})})]}):null}const Zv={added:"A",modified:"M",deleted:"D",renamed:"R"};function Vv(l){return{label:Zv[l],className:Hv[l]}}const Kv={added:wv,deleted:Ev,modified:Nv,renamed:Tl};function Qv(l){const i=Kv[l]??Tl;return f.jsx(i,{className:`w-4 h-4 flex-shrink-0 ${Gv[l]}`})}const Jv={reviewed:Eo,approved:pv,needs_changes:Aa};function Wv(l){const i=Jv[l];return i?f.jsx(i,{className:`w-3.5 h-3.5 flex-shrink-0 ${Yv[l]}`}):null}function Pv(l){const i=l.split("/");return i[i.length-1]}function e1(l){const i=l.split("/");return i.length<=1?"":i.slice(0,-1).join("/")}function t1({onSubmit:l}){const{diffSet:i,selectedFile:r,selectFile:s,fileStatuses:o,cycleFileStatus:d,toggleHotkeyGuide:h,comments:p,navigateHunk:g,setFileStatus:m,briefing:v}=Fe(),[x,S]=D.useState({}),[E,A]=D.useState(!1),C=D.useRef(null),_=D.useMemo(()=>i?i.files.some(ee=>ee.stage!==void 0):!1,[i]),{stagedFiles:U,unstagedFiles:I}=D.useMemo(()=>i?_?{stagedFiles:i.files.filter(ee=>ee.stage==="staged"),unstagedFiles:i.files.filter(ee=>ee.stage==="unstaged")}:{stagedFiles:[],unstagedFiles:[]}:{stagedFiles:[],unstagedFiles:[]},[i,_]),O=D.useMemo(()=>{if(!i||!(v!=null&&v.triage))return null;const{critical:ee,notable:W,mechanical:k}=v.triage;if(!(ee.length>0||k.length>0))return null;const le=new Set(ee.map(P=>P.file)),ue=new Set(k.map(P=>P.file)),ce=[],N=[],q=[];for(const P of i.files)le.has(P.path)?ce.push(P):ue.has(P.path)?q.push(P):N.push(P);return{criticalFiles:ce,notableFiles:N,mechanicalFiles:q}},[i,v]),$=O!==null&&!_,Y=D.useMemo(()=>{if(!i)return[];if($&&O){const W=[];return x["triage-critical"]||W.push(...O.criticalFiles),x["triage-notable"]||W.push(...O.notableFiles),x["triage-mechanical"]||W.push(...O.mechanicalFiles),W}if(!_)return i.files;const ee=[];return x.staged||ee.push(...U),x.unstaged||ee.push(...I),ee},[i,_,U,I,x,$,O]),F=D.useCallback(ee=>{if(Y.length===0)return;const W=Y.findIndex(L=>Dt(L)===r);let k;W===-1?k=0:ee==="up"?k=W>0?W-1:W:k=W<Y.length-1?W+1:W,s(Dt(Y[k]))},[Y,r,s]);D.useEffect(()=>{function ee(W){const k=W.target.tagName;k==="INPUT"||k==="TEXTAREA"||(W.key==="ArrowUp"||W.key==="k"?(W.preventDefault(),F("up")):W.key==="ArrowDown"||W.key==="j"?(W.preventDefault(),F("down")):W.key==="s"?(W.preventDefault(),r&&d(r)):W.key==="?"?(W.preventDefault(),h()):W.key==="n"?(W.preventDefault(),g("next")):W.key==="p"?(W.preventDefault(),g("prev")):W.key==="c"&&(W.preventDefault(),document.dispatchEvent(new CustomEvent("diffprism:open-comment"))))}return document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee)},[F,r,d,h,g]),D.useEffect(()=>{if(!E)return;function ee(W){C.current&&!C.current.contains(W.target)&&A(!1)}return document.addEventListener("mousedown",ee),()=>document.removeEventListener("mousedown",ee)},[E]);const H=D.useCallback(ee=>{const W=Object.values(o).some(k=>k!=="unreviewed");l({decision:"approved",comments:p,fileStatuses:W?o:void 0,postReviewAction:ee}),A(!1)},[o,p,l]),R=D.useCallback(()=>{if(O)for(const ee of O.mechanicalFiles)m(Dt(ee),"approved")},[O,m]);if(!i)return null;const K=i.files.reduce((ee,W)=>ee+W.additions,0),ie=i.files.reduce((ee,W)=>ee+W.deletions,0),re=ee=>{S(W=>({...W,[ee]:!W[ee]}))},fe=ee=>{const W=Dt(ee),k=W===r,L=Vv(ee.status),le=e1(ee.path);return f.jsxs("button",{onClick:()=>s(W),className:`
|
|
320
|
+
w-full text-left px-3 py-2 flex items-center gap-2
|
|
321
|
+
transition-colors duration-100 cursor-pointer group
|
|
322
|
+
${k?"bg-accent/10 border-l-2 border-accent":"border-l-2 border-transparent hover:bg-text-primary/5"}
|
|
323
|
+
`,children:[Qv(ee.status),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("div",{className:`text-sm truncate ${k?"text-text-primary":"text-text-secondary"} group-hover:text-text-primary`,children:Pv(ee.path)}),le&&f.jsx("div",{className:"text-xs text-text-secondary truncate",children:le})]}),f.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(()=>{const ue=o[W]??"unreviewed",ce=Wv(ue);return f.jsx("button",{onClick:N=>{N.stopPropagation(),d(W)},className:`p-0.5 rounded hover:bg-text-primary/10 transition-colors cursor-pointer ${ce?"":"opacity-0 group-hover:opacity-40"}`,title:ce?`Status: ${ue} (click to cycle)`:"Mark as reviewed (click to cycle)",children:ce??f.jsx(Eo,{className:"w-3.5 h-3.5 text-text-secondary"})})})(),ee.additions>0&&f.jsxs("span",{className:"text-success text-xs font-mono",children:["+",ee.additions]}),ee.deletions>0&&f.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",ee.deletions]}),f.jsx("span",{className:`
|
|
324
|
+
text-[10px] font-bold px-1.5 py-0.5 rounded border
|
|
325
|
+
${L.className}
|
|
326
|
+
`,children:L.label})]})]},W)},ne=(ee,W,k)=>{const L=x[W]??!1,le=k.reduce((ce,N)=>ce+N.additions,0),ue=k.reduce((ce,N)=>ce+N.deletions,0);return f.jsxs("button",{onClick:()=>re(W),className:"w-full text-left px-3 py-1.5 flex items-center gap-2 hover:bg-text-primary/5 cursor-pointer",children:[L?f.jsx(mv,{className:"w-3.5 h-3.5 text-text-secondary flex-shrink-0"}):f.jsx(gs,{className:"w-3.5 h-3.5 text-text-secondary flex-shrink-0"}),f.jsxs("span",{className:"text-text-secondary text-xs font-semibold uppercase tracking-wide",children:[ee," (",k.length,")"]}),f.jsxs("div",{className:"flex items-center gap-2 ml-auto flex-shrink-0",children:[le>0&&f.jsxs("span",{className:"text-success text-xs font-mono",children:["+",le]}),ue>0&&f.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",ue]})]})]},`section-${W}`)};return f.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-surface border-r border-border",children:[f.jsxs("div",{className:"px-4 py-3 border-b border-border",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h2",{className:"text-text-primary text-sm font-semibold",children:"Files"}),f.jsxs("div",{className:"relative",ref:C,children:[f.jsx("button",{onClick:()=>A(ee=>!ee),className:"p-1 rounded hover:bg-text-primary/10 transition-colors cursor-pointer text-text-secondary hover:text-text-primary",title:"Quick actions",children:f.jsx(xv,{className:"w-4 h-4"})}),E&&f.jsxs("div",{className:"absolute right-0 top-full mt-1 w-52 bg-surface border border-border rounded-lg shadow-lg z-50 py-1",children:[f.jsxs("button",{onClick:()=>H("commit"),className:"w-full text-left px-3 py-2 text-sm text-text-primary hover:bg-text-primary/10 flex items-center gap-2 cursor-pointer transition-colors",children:[f.jsx(El,{className:"w-4 h-4 text-success"}),"Approve & Commit"]}),f.jsxs("button",{onClick:()=>H("commit_and_pr"),className:"w-full text-left px-3 py-2 text-sm text-text-primary hover:bg-text-primary/10 flex items-center gap-2 cursor-pointer transition-colors",children:[f.jsx(ta,{className:"w-4 h-4 text-info"}),"Approve, Commit & PR"]})]})]})]}),f.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[f.jsxs("span",{className:"text-text-secondary text-xs",children:[i.files.length," file",i.files.length!==1?"s":""]}),K>0&&f.jsxs("span",{className:"text-success text-xs font-mono",children:["+",K]}),ie>0&&f.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",ie]})]})]}),f.jsx("div",{className:"flex-1 overflow-y-auto py-1",children:$&&O?f.jsxs(f.Fragment,{children:[O.criticalFiles.length>0&&f.jsxs(f.Fragment,{children:[ne("Critical","triage-critical",O.criticalFiles),!x["triage-critical"]&&O.criticalFiles.map(fe)]}),O.notableFiles.length>0&&f.jsxs(f.Fragment,{children:[ne("Notable","triage-notable",O.notableFiles),!x["triage-notable"]&&O.notableFiles.map(fe)]}),O.mechanicalFiles.length>0&&f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx("div",{className:"flex-1",children:ne("Mechanical","triage-mechanical",O.mechanicalFiles)}),f.jsx("button",{onClick:R,className:"mr-3 text-[10px] font-medium text-success hover:text-success/80 cursor-pointer px-1.5 py-0.5 rounded border border-success/30 hover:bg-success/10",children:"Approve all"})]}),!x["triage-mechanical"]&&O.mechanicalFiles.map(fe)]})]}):_?f.jsxs(f.Fragment,{children:[U.length>0&&f.jsxs(f.Fragment,{children:[ne("Staged Changes","staged",U),!x.staged&&U.map(fe)]}),I.length>0&&f.jsxs(f.Fragment,{children:[ne("Changes","unstaged",I),!x.unstaged&&I.map(fe)]})]}):i.files.map(fe)})]})}function zm(l,i){var r=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);i&&(s=s.filter((function(o){return Object.getOwnPropertyDescriptor(l,o).enumerable}))),r.push.apply(r,s)}return r}function Me(l){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?zm(Object(r),!0).forEach((function(s){ao(l,s,r[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(r)):zm(Object(r)).forEach((function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(r,s))}))}return l}function ao(l,i,r){return(i=(function(s){var o=(function(d,h){if(typeof d!="object"||d===null)return d;var p=d[Symbol.toPrimitive];if(p!==void 0){var g=p.call(d,h);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(d)})(s,"string");return typeof o=="symbol"?o:String(o)})(i))in l?Object.defineProperty(l,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):l[i]=r,l}function na(l,i){if(l==null)return{};var r,s,o=(function(h,p){if(h==null)return{};var g,m,v={},x=Object.keys(h);for(m=0;m<x.length;m++)g=x[m],p.indexOf(g)>=0||(v[g]=h[g]);return v})(l,i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);for(s=0;s<d.length;s++)r=d[s],i.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(l,r)&&(o[r]=l[r])}return o}function it(l,i){return wp(l)||(function(r,s){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var d,h,p,g,m=[],v=!0,x=!1;try{if(p=(o=o.call(r)).next,s===0){if(Object(o)!==o)return;v=!1}else for(;!(v=(d=p.call(o)).done)&&(m.push(d.value),m.length!==s);v=!0);}catch(S){x=!0,h=S}finally{try{if(!v&&o.return!=null&&(g=o.return(),Object(g)!==g))return}finally{if(x)throw h}}return m}})(l,i)||ms(l,i)||Tp()}function n1(l){return wp(l)||Ap(l)||ms(l)||Tp()}function xl(l){return(function(i){if(Array.isArray(i))return lo(i)})(l)||Ap(l)||ms(l)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
327
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function wp(l){if(Array.isArray(l))return l}function Ap(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function ms(l,i){if(l){if(typeof l=="string")return lo(l,i);var r=Object.prototype.toString.call(l).slice(8,-1);return r==="Object"&&l.constructor&&(r=l.constructor.name),r==="Map"||r==="Set"?Array.from(l):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lo(l,i):void 0}}function lo(l,i){(i==null||i>l.length)&&(i=l.length);for(var r=0,s=new Array(i);r<i;r++)s[r]=l[r];return s}function Tp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
328
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ao(l,i){var r=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!r){if(Array.isArray(l)||(r=ms(l))||i){r&&(l=r);var s=0,o=function(){};return{s:o,n:function(){return s>=l.length?{done:!0}:{done:!1,value:l[s++]}},e:function(g){throw g},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
329
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,p=!1;return{s:function(){r=r.call(l)},n:function(){var g=r.next();return h=g.done,g},e:function(g){p=!0,d=g},f:function(){try{h||r.return==null||r.return()}finally{if(p)throw d}}}}var ts=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rr(l,i){return l(i={exports:{}},i.exports),i.exports}var zt=Rr((function(l){/*!
|
|
330
|
+
Copyright (c) 2018 Jed Watson.
|
|
331
|
+
Licensed under the MIT License (MIT), see
|
|
332
|
+
http://jedwatson.github.io/classnames
|
|
333
|
+
*/(function(){var i={}.hasOwnProperty;function r(){for(var s=[],o=0;o<arguments.length;o++){var d=arguments[o];if(d){var h=typeof d;if(h==="string"||h==="number")s.push(d);else if(Array.isArray(d)){if(d.length){var p=r.apply(null,d);p&&s.push(p)}}else if(h==="object"){if(d.toString!==Object.prototype.toString&&!d.toString.toString().includes("[native code]")){s.push(d.toString());continue}for(var g in d)i.call(d,g)&&d[g]&&s.push(g)}}}return s.join(" ")}l.exports?(r.default=r,l.exports=r):window.classNames=r})()})),Et={hunkClassName:"",lineClassName:"",gutterClassName:"",codeClassName:"",monotonous:!1,gutterType:"default",viewType:"split",widgets:{},hideGutter:!1,selectedChanges:[],generateAnchorID:function(){},generateLineClassName:function(){},renderGutter:function(l){var i=l.renderDefault;return(0,l.wrapInAnchor)(i())},codeEvents:{},gutterEvents:{}},Cp=D.createContext(Et),a1=Cp.Provider,l1=function(){return D.useContext(Cp)},r1=Rr((function(l,i){(function(r){function s(d){var h=d.slice(11),p=null,g=null;switch(h.indexOf('"')){case-1:p=(x=h.split(" "))[0].slice(2),g=x[1].slice(2);break;case 0:var m=h.indexOf('"',2);p=h.slice(3,m);var v=h.indexOf('"',m+1);g=v<0?h.slice(m+4):h.slice(v+3,-1);break;default:var x;p=(x=h.split(" "))[0].slice(2),g=x[1].slice(3,-1)}return{oldPath:p,newPath:g}}var o={parse:function(d){for(var h,p,g,m,v,x=[],S=2,E=d.split(`
|
|
334
|
+
`),A=E.length,C=0;C<A;){var _=E[C];if(_.indexOf("diff --git")===0){h={hunks:[],oldEndingNewLine:!0,newEndingNewLine:!0,oldPath:(v=s(_)).oldPath,newPath:v.newPath},x.push(h);var U,I=null;e:for(;U=E[++C];){var O=U.indexOf(" "),$=O>-1?U.slice(0,O):$;switch($){case"diff":C--;break e;case"deleted":case"new":var Y=U.slice(O+1);Y.indexOf("file mode")===0&&(h[$==="new"?"newMode":"oldMode"]=Y.slice(10));break;case"similarity":h.similarity=parseInt(U.split(" ")[2],10);break;case"index":var F=U.slice(O+1).split(" "),H=F[0].split("..");h.oldRevision=H[0],h.newRevision=H[1],F[1]&&(h.oldMode=h.newMode=F[1]);break;case"copy":case"rename":var R=U.slice(O+1);R.indexOf("from")===0?h.oldPath=R.slice(5):h.newPath=R.slice(3),I=$;break;case"---":var K=U.slice(O+1),ie=E[++C].slice(4);K==="/dev/null"?(ie=ie.slice(2),I="add"):ie==="/dev/null"?(K=K.slice(2),I="delete"):(I="modify",K=K.slice(2),ie=ie.slice(2)),K&&(h.oldPath=K),ie&&(h.newPath=ie),S=5;break e}}h.type=I||"modify"}else if(_.indexOf("Binary")===0)h.isBinary=!0,h.type=_.indexOf("/dev/null and")>=0?"add":_.indexOf("and /dev/null")>=0?"delete":"modify",S=2,h=null;else if(S===5)if(_.indexOf("@@")===0){var re=/^@@\s+-([0-9]+)(,([0-9]+))?\s+\+([0-9]+)(,([0-9]+))?/.exec(_);p={content:_,oldStart:re[1]-0,newStart:re[4]-0,oldLines:re[3]-0||1,newLines:re[6]-0||1,changes:[]},h.hunks.push(p),g=p.oldStart,m=p.newStart}else{var fe=_.slice(0,1),ne={content:_.slice(1)};switch(fe){case"+":ne.type="insert",ne.isInsert=!0,ne.lineNumber=m,m++;break;case"-":ne.type="delete",ne.isDelete=!0,ne.lineNumber=g,g++;break;case" ":ne.type="normal",ne.isNormal=!0,ne.oldLineNumber=g,ne.newLineNumber=m,g++,m++;break;case"\\":var ee=p.changes[p.changes.length-1];ee.isDelete||(h.newEndingNewLine=!1),ee.isInsert||(h.oldEndingNewLine=!1)}ne.type&&p.changes.push(ne)}C++}return x}};l.exports=o})()}));function Ta(l){return l.type==="insert"}function Vt(l){return l.type==="delete"}function wa(l){return l.type==="normal"}function i1(l,i){var r=i.nearbySequences==="zip"?(function(s){var o=s.reduce((function(d,h,p){var g=it(d,3),m=g[0],v=g[1],x=g[2];return v?Ta(h)&&x>=0?(m.splice(x+1,0,h),[m,h,x+2]):(m.push(h),[m,h,Vt(h)&&Vt(v)?x:p]):(m.push(h),[m,h,Vt(h)?p:-1])}),[[],null,-1]);return it(o,1)[0]})(l.changes):l.changes;return Me(Me({},l),{},{isPlain:!1,changes:r})}function s1(l){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(function(s){if(s.startsWith("diff --git"))return s;var o=s.indexOf(`
|
|
335
|
+
`),d=s.indexOf(`
|
|
336
|
+
`,o+1),h=s.slice(0,o),p=s.slice(o+1,d),g=h.split(" ").slice(1,-3).join(" "),m=p.split(" ").slice(1,-3).join(" ");return["diff --git a/".concat(g," b/").concat(m),"index 1111111..2222222 100644","--- a/".concat(g),"+++ b/".concat(m),s.slice(d+1)].join(`
|
|
337
|
+
`)})(l.trimStart());return r1.parse(r).map((function(s){return(function(o,d){var h=o.hunks.map((function(p){return i1(p,d)}));return Me(Me({},o),{},{hunks:h})})(s,i)}))}function u1(l){return l[0]}function c1(l){return l[l.length-1]}function ro(l){return["".concat(l,"Start"),"".concat(l,"Lines")]}function Cr(l){return l==="old"?function(i){return Ta(i)?-1:wa(i)?i.oldLineNumber:i.lineNumber}:function(i){return Vt(i)?-1:wa(i)?i.newLineNumber:i.lineNumber}}function _p(l,i){return function(r,s){var o=r[l],d=o+r[i];return s>=o&&s<d}}function o1(l,i){return function(r,s,o){var d=r[l]+r[i],h=s[l];return o>=d&&o<h}}function jp(l){var i=Cr(l),r=(function(s){var o=it(ro(s),2),d=_p(o[0],o[1]);return function(h,p){return h.find((function(g){return d(g,p)}))}})(l);return function(s,o){var d=r(s,o);if(d)return d.changes.find((function(h){return i(h)===o}))}}function To(l){var i=l==="old"?"new":"old",r=it(ro(l),2),s=r[0],o=r[1],d=it(ro(i),2),h=d[0],p=d[1],g=Cr(l),m=Cr(i),v=_p(s,o),x=o1(s,o);return function(S,E){var A=u1(S);if(E<A[s]){var C=A[s]-E;return A[h]-C}var _=c1(S);if(_[s]+_[o]<=E){var U=E-_[s]-_[o];return _[h]+_[p]+U}for(var I=0;I<S.length;I++){var O=S[I],$=S[I+1];if(v(O,E)){var Y=O.changes.findIndex((function(re){return g(re)===E})),F=O.changes[Y];if(wa(F))return m(F);var H=Vt(F)?Y+1:Y-1,R=O.changes[H];if(!R)return-1;var K=Ta(F)?"delete":"insert";return R.type===K?m(R):-1}if(x(O,$,E)){var ie=E-O[s]-O[o];return O[h]+O[p]+ie}}throw new Error("Unexpected line position ".concat(E))}}var f1=function(){this.__data__=[],this.size=0},Op=function(l,i){return l===i||l!=l&&i!=i},ps=function(l,i){for(var r=l.length;r--;)if(Op(l[r][0],i))return r;return-1},d1=Array.prototype.splice,h1=function(l){var i=this.__data__,r=ps(i,l);return!(r<0)&&(r==i.length-1?i.pop():d1.call(i,r,1),--this.size,!0)},g1=function(l){var i=this.__data__,r=ps(i,l);return r<0?void 0:i[r][1]},m1=function(l){return ps(this.__data__,l)>-1},p1=function(l,i){var r=this.__data__,s=ps(r,l);return s<0?(++this.size,r.push([l,i])):r[s][1]=i,this};function pl(l){var i=-1,r=l==null?0:l.length;for(this.clear();++i<r;){var s=l[i];this.set(s[0],s[1])}}pl.prototype.clear=f1,pl.prototype.delete=h1,pl.prototype.get=g1,pl.prototype.has=m1,pl.prototype.set=p1;var ys=pl,y1=function(){this.__data__=new ys,this.size=0},b1=function(l){var i=this.__data__,r=i.delete(l);return this.size=i.size,r},v1=function(l){return this.__data__.get(l)},x1=function(l){return this.__data__.has(l)},kp=typeof ts=="object"&&ts&&ts.Object===Object&&ts,S1=typeof self=="object"&&self&&self.Object===Object&&self,Cn=kp||S1||Function("return this")(),rn=Cn.Symbol,Rp=Object.prototype,E1=Rp.hasOwnProperty,N1=Rp.toString,Ar=rn?rn.toStringTag:void 0,w1=function(l){var i=E1.call(l,Ar),r=l[Ar];try{l[Ar]=void 0;var s=!0}catch{}var o=N1.call(l);return s&&(i?l[Ar]=r:delete l[Ar]),o},A1=Object.prototype.toString,T1=function(l){return A1.call(l)},Lm=rn?rn.toStringTag:void 0,Cl=function(l){return l==null?l===void 0?"[object Undefined]":"[object Null]":Lm&&Lm in Object(l)?w1(l):T1(l)},Co=function(l){var i=typeof l;return l!=null&&(i=="object"||i=="function")},Mp=function(l){if(!Co(l))return!1;var i=Cl(l);return i=="[object Function]"||i=="[object GeneratorFunction]"||i=="[object AsyncFunction]"||i=="[object Proxy]"},Jc=Cn["__core-js_shared__"],Um=(function(){var l=/[^.]+$/.exec(Jc&&Jc.keys&&Jc.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),C1=function(l){return!!Um&&Um in l},_1=Function.prototype.toString,Ca=function(l){if(l!=null){try{return _1.call(l)}catch{}try{return l+""}catch{}}return""},j1=/^\[object .+?Constructor\]$/,O1=Function.prototype,k1=Object.prototype,R1=O1.toString,M1=k1.hasOwnProperty,D1=RegExp("^"+R1.call(M1).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z1=function(l){return!(!Co(l)||C1(l))&&(Mp(l)?D1:j1).test(Ca(l))},L1=function(l,i){return l==null?void 0:l[i]},_a=function(l,i){var r=L1(l,i);return z1(r)?r:void 0},_r=_a(Cn,"Map"),jr=_a(Object,"create"),U1=function(){this.__data__=jr?jr(null):{},this.size=0},B1=function(l){var i=this.has(l)&&delete this.__data__[l];return this.size-=i?1:0,i},H1=Object.prototype.hasOwnProperty,G1=function(l){var i=this.__data__;if(jr){var r=i[l];return r==="__lodash_hash_undefined__"?void 0:r}return H1.call(i,l)?i[l]:void 0},Y1=Object.prototype.hasOwnProperty,q1=function(l){var i=this.__data__;return jr?i[l]!==void 0:Y1.call(i,l)},I1=function(l,i){var r=this.__data__;return this.size+=this.has(l)?0:1,r[l]=jr&&i===void 0?"__lodash_hash_undefined__":i,this};function yl(l){var i=-1,r=l==null?0:l.length;for(this.clear();++i<r;){var s=l[i];this.set(s[0],s[1])}}yl.prototype.clear=U1,yl.prototype.delete=B1,yl.prototype.get=G1,yl.prototype.has=q1,yl.prototype.set=I1;var Bm=yl,X1=function(){this.size=0,this.__data__={hash:new Bm,map:new(_r||ys),string:new Bm}},F1=function(l){var i=typeof l;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?l!=="__proto__":l===null},bs=function(l,i){var r=l.__data__;return F1(i)?r[typeof i=="string"?"string":"hash"]:r.map},$1=function(l){var i=bs(this,l).delete(l);return this.size-=i?1:0,i},Z1=function(l){return bs(this,l).get(l)},V1=function(l){return bs(this,l).has(l)},K1=function(l,i){var r=bs(this,l),s=r.size;return r.set(l,i),this.size+=r.size==s?0:1,this};function bl(l){var i=-1,r=l==null?0:l.length;for(this.clear();++i<r;){var s=l[i];this.set(s[0],s[1])}}bl.prototype.clear=X1,bl.prototype.delete=$1,bl.prototype.get=Z1,bl.prototype.has=V1,bl.prototype.set=K1;var vs=bl,Q1=function(l,i){var r=this.__data__;if(r instanceof ys){var s=r.__data__;if(!_r||s.length<199)return s.push([l,i]),this.size=++r.size,this;r=this.__data__=new vs(s)}return r.set(l,i),this.size=r.size,this};function vl(l){var i=this.__data__=new ys(l);this.size=i.size}vl.prototype.clear=y1,vl.prototype.delete=b1,vl.prototype.get=v1,vl.prototype.has=x1,vl.prototype.set=Q1;var ss=vl,J1=function(l){return this.__data__.set(l,"__lodash_hash_undefined__"),this},W1=function(l){return this.__data__.has(l)};function us(l){var i=-1,r=l==null?0:l.length;for(this.__data__=new vs;++i<r;)this.add(l[i])}us.prototype.add=us.prototype.push=J1,us.prototype.has=W1;var P1=us,ex=function(l,i){for(var r=-1,s=l==null?0:l.length;++r<s;)if(i(l[r],r,l))return!0;return!1},tx=function(l,i){return l.has(i)},Dp=function(l,i,r,s,o,d){var h=1&r,p=l.length,g=i.length;if(p!=g&&!(h&&g>p))return!1;var m=d.get(l),v=d.get(i);if(m&&v)return m==i&&v==l;var x=-1,S=!0,E=2&r?new P1:void 0;for(d.set(l,i),d.set(i,l);++x<p;){var A=l[x],C=i[x];if(s)var _=h?s(C,A,x,i,l,d):s(A,C,x,l,i,d);if(_!==void 0){if(_)continue;S=!1;break}if(E){if(!ex(i,(function(U,I){if(!tx(E,I)&&(A===U||o(A,U,r,s,d)))return E.push(I)}))){S=!1;break}}else if(A!==C&&!o(A,C,r,s,d)){S=!1;break}}return d.delete(l),d.delete(i),S},Hm=Cn.Uint8Array,nx=function(l){var i=-1,r=Array(l.size);return l.forEach((function(s,o){r[++i]=[o,s]})),r},ax=function(l){var i=-1,r=Array(l.size);return l.forEach((function(s){r[++i]=s})),r},Gm=rn?rn.prototype:void 0,Wc=Gm?Gm.valueOf:void 0,lx=function(l,i,r,s,o,d,h){switch(r){case"[object DataView]":if(l.byteLength!=i.byteLength||l.byteOffset!=i.byteOffset)return!1;l=l.buffer,i=i.buffer;case"[object ArrayBuffer]":return!(l.byteLength!=i.byteLength||!d(new Hm(l),new Hm(i)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Op(+l,+i);case"[object Error]":return l.name==i.name&&l.message==i.message;case"[object RegExp]":case"[object String]":return l==i+"";case"[object Map]":var p=nx;case"[object Set]":var g=1&s;if(p||(p=ax),l.size!=i.size&&!g)return!1;var m=h.get(l);if(m)return m==i;s|=2,h.set(l,i);var v=Dp(p(l),p(i),s,o,d,h);return h.delete(l),v;case"[object Symbol]":if(Wc)return Wc.call(l)==Wc.call(i)}return!1},zp=function(l,i){for(var r=-1,s=i.length,o=l.length;++r<s;)l[o+r]=i[r];return l},Kt=Array.isArray,rx=function(l,i,r){var s=i(l);return Kt(l)?s:zp(s,r(l))},ix=function(l,i){for(var r=-1,s=l==null?0:l.length,o=0,d=[];++r<s;){var h=l[r];i(h,r,l)&&(d[o++]=h)}return d},sx=function(){return[]},ux=Object.prototype.propertyIsEnumerable,Ym=Object.getOwnPropertySymbols,cx=Ym?function(l){return l==null?[]:(l=Object(l),ix(Ym(l),(function(i){return ux.call(l,i)})))}:sx,ox=function(l,i){for(var r=-1,s=Array(l);++r<l;)s[r]=i(r);return s},Al=function(l){return l!=null&&typeof l=="object"},qm=function(l){return Al(l)&&Cl(l)=="[object Arguments]"},Lp=Object.prototype,fx=Lp.hasOwnProperty,dx=Lp.propertyIsEnumerable,_o=qm((function(){return arguments})())?qm:function(l){return Al(l)&&fx.call(l,"callee")&&!dx.call(l,"callee")},hx=function(){return!1},io=Rr((function(l,i){var r=i&&!i.nodeType&&i,s=r&&l&&!l.nodeType&&l,o=s&&s.exports===r?Cn.Buffer:void 0,d=(o?o.isBuffer:void 0)||hx;l.exports=d})),gx=/^(?:0|[1-9]\d*)$/,Up=function(l,i){var r=typeof l;return!!(i=i??9007199254740991)&&(r=="number"||r!="symbol"&&gx.test(l))&&l>-1&&l%1==0&&l<i},jo=function(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=9007199254740991},qe={};qe["[object Float32Array]"]=qe["[object Float64Array]"]=qe["[object Int8Array]"]=qe["[object Int16Array]"]=qe["[object Int32Array]"]=qe["[object Uint8Array]"]=qe["[object Uint8ClampedArray]"]=qe["[object Uint16Array]"]=qe["[object Uint32Array]"]=!0,qe["[object Arguments]"]=qe["[object Array]"]=qe["[object ArrayBuffer]"]=qe["[object Boolean]"]=qe["[object DataView]"]=qe["[object Date]"]=qe["[object Error]"]=qe["[object Function]"]=qe["[object Map]"]=qe["[object Number]"]=qe["[object Object]"]=qe["[object RegExp]"]=qe["[object Set]"]=qe["[object String]"]=qe["[object WeakMap]"]=!1;var mx=function(l){return Al(l)&&jo(l.length)&&!!qe[Cl(l)]},px=function(l){return function(i){return l(i)}},Im=Rr((function(l,i){var r=i&&!i.nodeType&&i,s=r&&l&&!l.nodeType&&l,o=s&&s.exports===r&&kp.process,d=(function(){try{var h=s&&s.require&&s.require("util").types;return h||o&&o.binding&&o.binding("util")}catch{}})();l.exports=d})),Xm=Im&&Im.isTypedArray,Bp=Xm?px(Xm):mx,yx=Object.prototype.hasOwnProperty,bx=function(l,i){var r=Kt(l),s=!r&&_o(l),o=!r&&!s&&io(l),d=!r&&!s&&!o&&Bp(l),h=r||s||o||d,p=h?ox(l.length,String):[],g=p.length;for(var m in l)!yx.call(l,m)||h&&(m=="length"||o&&(m=="offset"||m=="parent")||d&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||Up(m,g))||p.push(m);return p},vx=Object.prototype,xx=function(l){var i=l&&l.constructor;return l===(typeof i=="function"&&i.prototype||vx)},Sx=(function(l,i){return function(r){return l(i(r))}})(Object.keys,Object),Ex=Object.prototype.hasOwnProperty,Nx=function(l){if(!xx(l))return Sx(l);var i=[];for(var r in Object(l))Ex.call(l,r)&&r!="constructor"&&i.push(r);return i},Oo=function(l){return l!=null&&jo(l.length)&&!Mp(l)},ko=function(l){return Oo(l)?bx(l):Nx(l)},Fm=function(l){return rx(l,ko,cx)},wx=Object.prototype.hasOwnProperty,Ax=function(l,i,r,s,o,d){var h=1&r,p=Fm(l),g=p.length;if(g!=Fm(i).length&&!h)return!1;for(var m=g;m--;){var v=p[m];if(!(h?v in i:wx.call(i,v)))return!1}var x=d.get(l),S=d.get(i);if(x&&S)return x==i&&S==l;var E=!0;d.set(l,i),d.set(i,l);for(var A=h;++m<g;){var C=l[v=p[m]],_=i[v];if(s)var U=h?s(_,C,v,i,l,d):s(C,_,v,l,i,d);if(!(U===void 0?C===_||o(C,_,r,s,d):U)){E=!1;break}A||(A=v=="constructor")}if(E&&!A){var I=l.constructor,O=i.constructor;I==O||!("constructor"in l)||!("constructor"in i)||typeof I=="function"&&I instanceof I&&typeof O=="function"&&O instanceof O||(E=!1)}return d.delete(l),d.delete(i),E},so=_a(Cn,"DataView"),uo=_a(Cn,"Promise"),co=_a(Cn,"Set"),oo=_a(Cn,"WeakMap"),Tx=Ca(so),Cx=Ca(_r),_x=Ca(uo),jx=Ca(co),Ox=Ca(oo),Ea=Cl;(so&&Ea(new so(new ArrayBuffer(1)))!="[object DataView]"||_r&&Ea(new _r)!="[object Map]"||uo&&Ea(uo.resolve())!="[object Promise]"||co&&Ea(new co)!="[object Set]"||oo&&Ea(new oo)!="[object WeakMap]")&&(Ea=function(l){var i=Cl(l),r=i=="[object Object]"?l.constructor:void 0,s=r?Ca(r):"";if(s)switch(s){case Tx:return"[object DataView]";case Cx:return"[object Map]";case _x:return"[object Promise]";case jx:return"[object Set]";case Ox:return"[object WeakMap]"}return i});var $m=Ea,ns="[object Object]",Zm=Object.prototype.hasOwnProperty,kx=function(l,i,r,s,o,d){var h=Kt(l),p=Kt(i),g=h?"[object Array]":$m(l),m=p?"[object Array]":$m(i),v=(g=g=="[object Arguments]"?ns:g)==ns,x=(m=m=="[object Arguments]"?ns:m)==ns,S=g==m;if(S&&io(l)){if(!io(i))return!1;h=!0,v=!1}if(S&&!v)return d||(d=new ss),h||Bp(l)?Dp(l,i,r,s,o,d):lx(l,i,g,r,s,o,d);if(!(1&r)){var E=v&&Zm.call(l,"__wrapped__"),A=x&&Zm.call(i,"__wrapped__");if(E||A){var C=E?l.value():l,_=A?i.value():i;return d||(d=new ss),o(C,_,r,s,d)}}return!!S&&(d||(d=new ss),Ax(l,i,r,s,o,d))},xs=function l(i,r,s,o,d){return i===r||(i==null||r==null||!Al(i)&&!Al(r)?i!=i&&r!=r:kx(i,r,s,o,l,d))},Rx=function(l,i,r,s){var o=r.length,d=o;if(l==null)return!d;for(l=Object(l);o--;){var h=r[o];if(h[2]?h[1]!==l[h[0]]:!(h[0]in l))return!1}for(;++o<d;){var p=(h=r[o])[0],g=l[p],m=h[1];if(h[2]){if(g===void 0&&!(p in l))return!1}else{var v=new ss,x;if(!(x===void 0?xs(m,g,3,s,v):x))return!1}}return!0},Hp=function(l){return l==l&&!Co(l)},Mx=function(l){for(var i=ko(l),r=i.length;r--;){var s=i[r],o=l[s];i[r]=[s,o,Hp(o)]}return i},Gp=function(l,i){return function(r){return r!=null&&r[l]===i&&(i!==void 0||l in Object(r))}},Dx=function(l){var i=Mx(l);return i.length==1&&i[0][2]?Gp(i[0][0],i[0][1]):function(r){return r===l||Rx(r,l,i)}},Ro=function(l){return typeof l=="symbol"||Al(l)&&Cl(l)=="[object Symbol]"},zx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Lx=/^\w*$/,Mo=function(l,i){if(Kt(l))return!1;var r=typeof l;return!(r!="number"&&r!="symbol"&&r!="boolean"&&l!=null&&!Ro(l))||Lx.test(l)||!zx.test(l)||i!=null&&l in Object(i)};function Do(l,i){if(typeof l!="function"||i!=null&&typeof i!="function")throw new TypeError("Expected a function");var r=function(){var s=arguments,o=i?i.apply(this,s):s[0],d=r.cache;if(d.has(o))return d.get(o);var h=l.apply(this,s);return r.cache=d.set(o,h)||d,h};return r.cache=new(Do.Cache||vs),r}Do.Cache=vs;var Ux=Do,Bx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hx=/\\(\\)?/g,Gx=(function(l){var i=Ux(l,(function(s){return r.size===500&&r.clear(),s})),r=i.cache;return i})((function(l){var i=[];return l.charCodeAt(0)===46&&i.push(""),l.replace(Bx,(function(r,s,o,d){i.push(o?d.replace(Hx,"$1"):s||r)})),i})),Yp=function(l,i){for(var r=-1,s=l==null?0:l.length,o=Array(s);++r<s;)o[r]=i(l[r],r,l);return o},Vm=rn?rn.prototype:void 0,Km=Vm?Vm.toString:void 0,Yx=function l(i){if(typeof i=="string")return i;if(Kt(i))return Yp(i,l)+"";if(Ro(i))return Km?Km.call(i):"";var r=i+"";return r=="0"&&1/i==-1/0?"-0":r},qx=function(l){return l==null?"":Yx(l)},qp=function(l,i){return Kt(l)?l:Mo(l,i)?[l]:Gx(qx(l))},Ss=function(l){if(typeof l=="string"||Ro(l))return l;var i=l+"";return i=="0"&&1/l==-1/0?"-0":i},Ip=function(l,i){for(var r=0,s=(i=qp(i,l)).length;l!=null&&r<s;)l=l[Ss(i[r++])];return r&&r==s?l:void 0},Ix=function(l,i,r){var s=l==null?void 0:Ip(l,i);return s===void 0?r:s},Xx=function(l,i){return l!=null&&i in Object(l)},Fx=function(l,i,r){for(var s=-1,o=(i=qp(i,l)).length,d=!1;++s<o;){var h=Ss(i[s]);if(!(d=l!=null&&r(l,h)))break;l=l[h]}return d||++s!=o?d:!!(o=l==null?0:l.length)&&jo(o)&&Up(h,o)&&(Kt(l)||_o(l))},$x=function(l,i){return l!=null&&Fx(l,i,Xx)},Zx=function(l,i){return Mo(l)&&Hp(i)?Gp(Ss(l),i):function(r){var s=Ix(r,l);return s===void 0&&s===i?$x(r,l):xs(i,s,3)}},Vx=function(l){return l},Kx=function(l){return function(i){return i==null?void 0:i[l]}},Qx=function(l){return function(i){return Ip(i,l)}},Jx=function(l){return Mo(l)?Kx(Ss(l)):Qx(l)},zo=function(l){return typeof l=="function"?l:l==null?Vx:typeof l=="object"?Kt(l)?Zx(l[0],l[1]):Dx(l):Jx(l)};function Lt(l){if(!l)throw new Error("change is not provided");if(wa(l))return"N".concat(l.oldLineNumber);var i=Ta(l)?"I":"D";return"".concat(i).concat(l.lineNumber)}To("old");var Es=Cr("old"),Ns=Cr("new");jp("old");jp("new");To("new");To("old");var Qm=(function(){try{var l=_a(Object,"defineProperty");return l({},"",{}),l}catch{}})(),Xp=function(l,i,r){i=="__proto__"&&Qm?Qm(l,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):l[i]=r},Wx=function(l){return function(i,r,s){for(var o=-1,d=Object(i),h=s(i),p=h.length;p--;){var g=h[++o];if(r(d[g],g,d)===!1)break}return i}},Px=Wx(),Fp=function(l,i){return l&&Px(l,i,ko)},$p=function(l,i){var r={};return i=zo(i),Fp(l,(function(s,o,d){Xp(r,o,i(s,o,d))})),r},eS=["changeKey","text","tokens","renderToken"],Jm=function l(i,r){var s=i.type,o=i.value,d=i.markType,h=i.properties,p=i.className,g=i.children,m=function(x){return f.jsx("span",{className:x,children:o||g&&g.map(l)},r)};switch(s){case"text":return o;case"mark":return m("diff-code-mark diff-code-mark-".concat(d));case"edit":return m("diff-code-edit");default:var v=h&&h.className;return m(zt(p||v))}};function tS(l){if(!Array.isArray(l))return!0;if(l.length>1)return!1;if(l.length===1){var i=it(l,1)[0];return i.type==="text"&&!i.value}return!0}function nS(l){var i=l.changeKey,r=l.text,s=l.tokens,o=l.renderToken,d=na(l,eS),h=o?function(p,g){return o(p,Jm,g)}:Jm;return f.jsx("td",Me(Me({},d),{},{"data-change-key":i,children:s?tS(s)?" ":s.map(h):r||" "}))}var Zp=D.memo(nS);function Vp(l,i){return function(){var r=i==="old"?Es(l):Ns(l);return r===-1?void 0:r}}function Kp(l,i){return function(r){return l&&r?f.jsx("a",{href:i?"#"+i:void 0,children:r}):r}}function fs(l,i){return i?function(r){l(),i(r)}:l}function Wm(l,i,r,s){return D.useMemo((function(){var o=$p(l,(function(d){return function(h){return d&&d(i,h)}}));return o.onMouseEnter=fs(r,o.onMouseEnter),o.onMouseLeave=fs(s,o.onMouseLeave),o}),[l,r,s,i])}function Pm(l,i,r,s,o,d,h,p,g){var m={change:i,side:s,inHoverState:p,renderDefault:Vp(i,s),wrapInAnchor:Kp(o,d)};return f.jsx("td",Me(Me({className:l},h),{},{"data-change-key":r,children:g(m)}))}function aS(l){var i,r,s,o=l.change,d=l.selected,h=l.tokens,p=l.className,g=l.generateLineClassName,m=l.gutterClassName,v=l.codeClassName,x=l.gutterEvents,S=l.codeEvents,E=l.hideGutter,A=l.gutterAnchor,C=l.generateAnchorID,_=l.renderToken,U=l.renderGutter,I=o.type,O=o.content,$=Lt(o),Y=(i=it(D.useState(!1),2),r=i[0],s=i[1],[r,D.useCallback((function(){return s(!0)}),[]),D.useCallback((function(){return s(!1)}),[])]),F=it(Y,3),H=F[0],R=F[1],K=F[2],ie=D.useMemo((function(){return{change:o}}),[o]),re=Wm(x,ie,R,K),fe=Wm(S,ie,R,K),ne=C(o),ee=g({changes:[o],defaultGenerate:function(){return p}}),W=zt("diff-gutter","diff-gutter-".concat(I),m,{"diff-gutter-selected":d}),k=zt("diff-code","diff-code-".concat(I),v,{"diff-code-selected":d});return f.jsxs("tr",{id:ne,className:zt("diff-line",ee),children:[!E&&Pm(W,o,$,"old",A,ne,re,H,U),!E&&Pm(W,o,$,"new",A,ne,re,H,U),f.jsx(Zp,Me({className:k,changeKey:$,text:O,tokens:h,renderToken:_},fe))]})}var lS=D.memo(aS);function rS(l){var i=l.hideGutter,r=l.element;return f.jsx("tr",{className:"diff-widget",children:f.jsx("td",{colSpan:i?1:3,className:"diff-widget-content",children:r})})}var iS=["hideGutter","selectedChanges","tokens","lineClassName"],sS=["hunk","widgets","className"];function uS(l){var i=l.hunk,r=l.widgets,s=l.className,o=na(l,sS),d=(function(h,p){return h.reduce((function(g,m){var v=Lt(m);g.push(["change",v,m]);var x=p[v];return x&&g.push(["widget",v,x]),g}),[])})(i.changes,r);return f.jsx("tbody",{className:zt("diff-hunk",s),children:d.map((function(h){return(function(p,g){var m=it(p,3),v=m[0],x=m[1],S=m[2],E=g.hideGutter,A=g.selectedChanges,C=g.tokens,_=g.lineClassName,U=na(g,iS);if(v==="change"){var I=Vt(S)?"old":"new",O=Vt(S)?Es(S):Ns(S),$=C?C[I][O-1]:null;return f.jsx(lS,Me({className:_,change:S,hideGutter:E,selected:A.includes(x),tokens:$},U),"change".concat(x))}return v==="widget"?f.jsx(rS,{hideGutter:E,element:S},"widget".concat(x)):null})(h,o)}))})}var Qp=0;function as(l,i,r,s){var o=D.useCallback((function(){return i(l)}),[l,i]),d=D.useCallback((function(){return i("")}),[i]);return D.useMemo((function(){var h=$p(s,(function(p){return function(g){return p&&p({side:l,change:r},g)}}));return h.onMouseEnter=fs(o,h.onMouseEnter),h.onMouseLeave=fs(d,h.onMouseLeave),h}),[r,s,o,l,d])}function Pc(l){var i=l.change,r=l.side,s=l.selected,o=l.tokens,d=l.gutterClassName,h=l.codeClassName,p=l.gutterEvents,g=l.codeEvents,m=l.anchorID,v=l.gutterAnchor,x=l.gutterAnchorTarget,S=l.hideGutter,E=l.hover,A=l.renderToken,C=l.renderGutter;if(!i){var _=zt("diff-gutter","diff-gutter-omit",d),U=zt("diff-code","diff-code-omit",h);return[!S&&f.jsx("td",{className:_},"gutter"),f.jsx("td",{className:U},"code")]}var I=i.type,O=i.content,$=Lt(i),Y=r===Qp?"old":"new",F=Me({id:m||void 0,className:zt("diff-gutter","diff-gutter-".concat(I),ao({"diff-gutter-selected":s},"diff-line-hover-"+Y,E),d),children:C({change:i,side:Y,inHoverState:E,renderDefault:Vp(i,Y),wrapInAnchor:Kp(v,x)})},p),H=zt("diff-code","diff-code-".concat(I),ao({"diff-code-selected":s},"diff-line-hover-"+Y,E),h);return[!S&&f.jsx("td",Me(Me({},F),{},{"data-change-key":$}),"gutter"),f.jsx(Zp,Me({className:H,changeKey:$,text:O,tokens:o,renderToken:A},g),"code")]}function cS(l){var i=l.className,r=l.oldChange,s=l.newChange,o=l.oldSelected,d=l.newSelected,h=l.oldTokens,p=l.newTokens,g=l.monotonous,m=l.gutterClassName,v=l.codeClassName,x=l.gutterEvents,S=l.codeEvents,E=l.hideGutter,A=l.generateAnchorID,C=l.generateLineClassName,_=l.gutterAnchor,U=l.renderToken,I=l.renderGutter,O=it(D.useState(""),2),$=O[0],Y=O[1],F=as("old",Y,r,x),H=as("new",Y,s,x),R=as("old",Y,r,S),K=as("new",Y,s,S),ie=r&&A(r),re=s&&A(s),fe=C({changes:[r,s],defaultGenerate:function(){return i}}),ne={monotonous:g,hideGutter:E,gutterClassName:m,codeClassName:v,gutterEvents:x,codeEvents:S,renderToken:U,renderGutter:I},ee=Me(Me({},ne),{},{change:r,side:Qp,selected:o,tokens:h,gutterEvents:F,codeEvents:R,anchorID:ie,gutterAnchor:_,gutterAnchorTarget:ie,hover:$==="old"}),W=Me(Me({},ne),{},{change:s,side:1,selected:d,tokens:p,gutterEvents:H,codeEvents:K,anchorID:r===s?null:re,gutterAnchor:_,gutterAnchorTarget:r===s?ie:re,hover:$==="new"});if(g)return f.jsx("tr",{className:zt("diff-line",fe),children:Pc(r?ee:W)});var k=(function(L,le){return L&&!le?"diff-line-old-only":!L&&le?"diff-line-new-only":L===le?"diff-line-normal":"diff-line-compare"})(r,s);return f.jsxs("tr",{className:zt("diff-line",k,fe),children:[Pc(ee),Pc(W)]})}var oS=D.memo(cS);function fS(l){var i=l.hideGutter,r=l.oldElement,s=l.newElement;return l.monotonous?f.jsx("tr",{className:"diff-widget",children:f.jsx("td",{colSpan:i?1:2,className:"diff-widget-content",children:r||s})}):r===s?f.jsx("tr",{className:"diff-widget",children:f.jsx("td",{colSpan:i?2:4,className:"diff-widget-content",children:r})}):f.jsxs("tr",{className:"diff-widget",children:[f.jsx("td",{colSpan:i?1:2,className:"diff-widget-content",children:r}),f.jsx("td",{colSpan:i?1:2,className:"diff-widget-content",children:s})]})}var dS=["selectedChanges","monotonous","hideGutter","tokens","lineClassName"],hS=["hunk","widgets","className"];function ls(l,i){return(l?Lt(l):"00")+(i?Lt(i):"00")}function gS(l){var i=l.hunk,r=l.widgets,s=l.className,o=na(l,hS),d=(function(h,p){for(var g=function(U){if(!U)return null;var I=Lt(U);return p[I]||null},m=[],v=0;v<h.length;v++){var x=h[v];if(wa(x))m.push(["change",ls(x,x),x,x]);else if(Vt(x)){var S=h[v+1];S&&Ta(S)?(v+=1,m.push(["change",ls(x,S),x,S])):m.push(["change",ls(x,null),x,null])}else m.push(["change",ls(null,x),null,x]);var E=m[m.length-1],A=g(E[2]),C=g(E[3]);if(A||C){var _=E[1];m.push(["widget",_,A,C])}}return m})(i.changes,r);return f.jsx("tbody",{className:zt("diff-hunk",s),children:d.map((function(h){return(function(p,g){var m=it(p,4),v=m[0],x=m[1],S=m[2],E=m[3],A=g.selectedChanges,C=g.monotonous,_=g.hideGutter,U=g.tokens,I=g.lineClassName,O=na(g,dS);if(v==="change"){var $=!!S&&A.includes(Lt(S)),Y=!!E&&A.includes(Lt(E)),F=S&&U?U.old[Es(S)-1]:null,H=E&&U?U.new[Ns(E)-1]:null;return f.jsx(oS,Me({className:I,oldChange:S,newChange:E,monotonous:C,hideGutter:_,oldSelected:$,newSelected:Y,oldTokens:F,newTokens:H},O),"change".concat(x))}return v==="widget"?f.jsx(fS,{monotonous:C,hideGutter:_,oldElement:S,newElement:E},"widget".concat(x)):null})(h,o)}))})}var mS=["gutterType","hunkClassName"];function Jp(l){var i=l.hunk,r=l1(),s=r.gutterType,o=r.hunkClassName,d=na(r,mS),h=s==="none",p=s==="anchor",g=d.viewType==="unified"?uS:gS;return f.jsx(g,Me(Me({},d),{},{hunk:i,hideGutter:h,gutterAnchor:p,className:o}))}function pS(){}function ep(l,i){var r=i?"auto":"none";l instanceof HTMLElement&&l.style.userSelect!==r&&(l.style.userSelect=r)}function yS(l){return l.map((function(i){return f.jsx(Jp,{hunk:i},(function(r){return"-".concat(r.oldStart,",").concat(r.oldLines," +").concat(r.newStart,",").concat(r.newLines)})(i))}))}function bS(l){var i=l.diffType,r=l.hunks,s=l.optimizeSelection,o=l.className,d=l.hunkClassName,h=d===void 0?Et.hunkClassName:d,p=l.lineClassName,g=p===void 0?Et.lineClassName:p,m=l.generateLineClassName,v=m===void 0?Et.generateLineClassName:m,x=l.gutterClassName,S=x===void 0?Et.gutterClassName:x,E=l.codeClassName,A=E===void 0?Et.codeClassName:E,C=l.gutterType,_=C===void 0?Et.gutterType:C,U=l.viewType,I=U===void 0?Et.viewType:U,O=l.gutterEvents,$=O===void 0?Et.gutterEvents:O,Y=l.codeEvents,F=Y===void 0?Et.codeEvents:Y,H=l.generateAnchorID,R=H===void 0?Et.generateAnchorID:H,K=l.selectedChanges,ie=K===void 0?Et.selectedChanges:K,re=l.widgets,fe=re===void 0?Et.widgets:re,ne=l.renderGutter,ee=ne===void 0?Et.renderGutter:ne,W=l.tokens,k=l.renderToken,L=l.children,le=L===void 0?yS:L,ue=D.useRef(null),ce=D.useCallback((function(ae){var de=ae.target;if(ae.button===0){var Ue=(function($e,aa){for(var Jt=$e;Jt&&Jt!==document.documentElement&&!Jt.classList.contains(aa);)Jt=Jt.parentElement;return Jt===document.documentElement?null:Jt})(de,"diff-code");if(Ue&&Ue.parentElement){var me=window.getSelection();me&&me.removeAllRanges();var Ce=xl(Ue.parentElement.children).indexOf(Ue);if(Ce===1||Ce===3){var Xe,Ut=Ao(ue.current?ue.current.querySelectorAll(".diff-line"):[]);try{for(Ut.s();!(Xe=Ut.n()).done;){var ht=Xe.value.children;ep(ht[1],Ce===1),ep(ht[3],Ce===3)}}catch($e){Ut.e($e)}finally{Ut.f()}}}}}),[]),N=_==="none",q=i==="add"||i==="delete",P=I==="split"&&!q&&s?ce:pS,J=D.useMemo((function(){return f.jsxs("colgroup",I==="unified"?{children:[!N&&f.jsx("col",{className:"diff-gutter-col"}),!N&&f.jsx("col",{className:"diff-gutter-col"}),f.jsx("col",{})]}:q?{children:[!N&&f.jsx("col",{className:"diff-gutter-col"}),f.jsx("col",{})]}:{children:[!N&&f.jsx("col",{className:"diff-gutter-col"}),f.jsx("col",{}),!N&&f.jsx("col",{className:"diff-gutter-col"}),f.jsx("col",{})]})}),[I,q,N]),Q=D.useMemo((function(){return{hunkClassName:h,lineClassName:g,generateLineClassName:v,gutterClassName:S,codeClassName:A,monotonous:q,hideGutter:N,viewType:I,gutterType:_,codeEvents:F,gutterEvents:$,generateAnchorID:R,selectedChanges:ie,widgets:fe,renderGutter:ee,tokens:W,renderToken:k}}),[A,F,R,S,$,_,N,h,g,v,q,ee,k,ie,W,I,fe]);return f.jsx(a1,{value:Q,children:f.jsxs("table",{ref:ue,className:zt("diff","diff-".concat(I),o),onMouseDown:P,children:[J,le(r)]})})}var vS=D.memo(bS),xS=function(l,i,r,s){for(var o=-1,d=l==null?0:l.length;++o<d;){var h=l[o];i(s,h,r(h),l)}return s},SS=function(l,i){return function(r,s){if(r==null)return r;if(!Oo(r))return l(r,s);for(var o=r.length,d=-1,h=Object(r);++d<o&&s(h[d],d,h)!==!1;);return r}},Wp=SS(Fp),ES=function(l,i,r,s){return Wp(l,(function(o,d,h){i(s,o,r(o),h)})),s},NS=function(l,i){return function(r,s){var o=Kt(r)?xS:ES,d=i?i():{};return o(r,l,zo(s),d)}},wS=NS((function(l,i,r){Xp(l,r,i)})),tp=rn?rn.isConcatSpreadable:void 0,AS=function(l){return Kt(l)||_o(l)||!!(tp&&l&&l[tp])},TS=function(i,r,s,o,d){var h=-1,p=i.length;for(s||(s=AS),d||(d=[]);++h<p;){var g=i[h];s(g)?zp(d,g):d[d.length]=g}return d},CS=function(l,i){var r=-1,s=Oo(l)?Array(l.length):[];return Wp(l,(function(o,d,h){s[++r]=i(o,d,h)})),s},_S=function(l,i){return(Kt(l)?Yp:CS)(l,zo(i))},jS=function(l,i){return TS(_S(l,i))};function OS(l,i){var r=i.newStart,s=i.changes.reduce((function(o,d){var h=it(o,2),p=h[0],g=h[1];return Vt(d)?(p.splice(g,1),[p,g]):(Ta(d)&&p.splice(g,0,d.content),[p,g+1])}),[l,r-1]);return it(s,1)[0]}function np(l,i,r){if(!l.length)return[];var s=i==="old"?Es:Ns,o=wS(l,s),d=s(l[l.length-1]);return Array.from({length:d}).map((function(h,p){return r(o[p+1])}))}function kS(l){var i=(function(h){return jS(h,(function(p){return p.changes})).reduce((function(p,g){var m=it(p,2),v=m[0],x=m[1];return wa(g)?(v.push(g),x.push(g)):Vt(g)?v.push(g):x.push(g),[v,x]}),[[],[]])})(l),r=it(i,2),s=r[0],o=r[1],d=function(h){return h?h.content:""};return[np(s,"old",d).join(`
|
|
338
|
+
`),np(o,"new",d).join(`
|
|
339
|
+
`)]}function rs(l){return{type:"root",children:l}}function RS(l,i){if(i.oldSource){var r=(function(g,m){return m.reduce(OS,g.split(`
|
|
340
|
+
`)).join(`
|
|
341
|
+
`)})(i.oldSource,l),s=i.highlight?function(g){return i.refractor.highlight(g,i.language)}:function(g){return[{type:"text",value:g}]};return[rs(s(i.oldSource)),rs(s(r))]}var o=it(kS(l),2),d=o[0],h=o[1],p=i.highlight?function(g){return rs(i.refractor.highlight(g,i.language))}:function(g){return rs([{type:"text",value:g}])};return[p(d),p(h)]}function Pp(l){return l.map((function(i){return Me({},i)}))}function MS(l,i){return[].concat(xl(Pp(l.slice(0,-1))),[i])}function DS(l){var i=l[l.length-1];if(i.type==="text")return i;throw new Error("Invalid token path with leaf of type ".concat(i.type))}var zS=["children"];function ey(l){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(l.children){var s=l.children,o=na(l,zS);r.push(o);var d,h=Ao(s);try{for(h.s();!(d=h.n()).done;)ey(d.value,i,r)}catch(p){h.e(p)}finally{h.f()}r.pop()}else i.push(Pp([].concat(xl(r.slice(1)),[l])));return i}function LS(l){return l.reduce((function(i,r){var s=i[i.length-1],o=(function(g){var m=DS(g);return m.value.includes(`
|
|
342
|
+
`)?m.value.split(`
|
|
343
|
+
`).map((function(v){return MS(g,Me(Me({},m),{},{value:v}))})):[g]})(r),d=n1(o),h=d[0],p=d.slice(1);return[].concat(xl(i.slice(0,-1)),[[].concat(xl(s),[h])],xl(p.map((function(g){return[g]}))))}),[[]])}function ap(l){return LS(ey(l))}var US=function(l,i,r){var s=(r=typeof r=="function"?r:void 0)?r(l,i):void 0;return s===void 0?xs(l,i,void 0,r):!!s},BS=function(l,i){return xs(l,i)},HS=function(l){var i=l==null?0:l.length;return i?l[i-1]:void 0};function GS(l,i){if(!l.children)throw new Error("parent node missing children property");var r,s,o=HS(l.children);return o&&(s=i,(r=o).type===s.type&&(r.type==="text"||r.children&&s.children&&US(r,s,(function(d,h,p){return p==="chlidren"||BS(d,h)}))))?l.children[l.children.length-1]=(function(d,h){return"value"in d&&"value"in h?Me(Me({},d),{},{value:"".concat(d.value).concat(h.value)}):d})(o,i):l.children.push(i),l.children[l.children.length-1]}function lp(l){var i,r={type:"root",children:[]},s=Ao(l);try{var o=function(){var d=i.value;d.reduce((function(h,p,g){return GS(h,g===d.length-1?Me({},p):Me(Me({},p),{},{children:[]}))}),r)};for(s.s();!(i=s.n()).done;)o()}catch(d){s.e(d)}finally{s.f()}return r}var Lo=Rr((function(l){var i=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};i.Diff=function(r,s){return[r,s]},i.prototype.diff_main=function(r,s,o,d){d===void 0&&(d=this.Diff_Timeout<=0?Number.MAX_VALUE:new Date().getTime()+1e3*this.Diff_Timeout);var h=d;if(r==null||s==null)throw new Error("Null input. (diff_main)");if(r==s)return r?[new i.Diff(0,r)]:[];o===void 0&&(o=!0);var p=o,g=this.diff_commonPrefix(r,s),m=r.substring(0,g);r=r.substring(g),s=s.substring(g),g=this.diff_commonSuffix(r,s);var v=r.substring(r.length-g);r=r.substring(0,r.length-g),s=s.substring(0,s.length-g);var x=this.diff_compute_(r,s,p,h);return m&&x.unshift(new i.Diff(0,m)),v&&x.push(new i.Diff(0,v)),this.diff_cleanupMerge(x),x},i.prototype.diff_compute_=function(r,s,o,d){var h;if(!r)return[new i.Diff(1,s)];if(!s)return[new i.Diff(-1,r)];var p=r.length>s.length?r:s,g=r.length>s.length?s:r,m=p.indexOf(g);if(m!=-1)return h=[new i.Diff(1,p.substring(0,m)),new i.Diff(0,g),new i.Diff(1,p.substring(m+g.length))],r.length>s.length&&(h[0][0]=h[2][0]=-1),h;if(g.length==1)return[new i.Diff(-1,r),new i.Diff(1,s)];var v=this.diff_halfMatch_(r,s);if(v){var x=v[0],S=v[1],E=v[2],A=v[3],C=v[4],_=this.diff_main(x,E,o,d),U=this.diff_main(S,A,o,d);return _.concat([new i.Diff(0,C)],U)}return o&&r.length>100&&s.length>100?this.diff_lineMode_(r,s,d):this.diff_bisect_(r,s,d)},i.prototype.diff_lineMode_=function(r,s,o){var d=this.diff_linesToChars_(r,s);r=d.chars1,s=d.chars2;var h=d.lineArray,p=this.diff_main(r,s,!1,o);this.diff_charsToLines_(p,h),this.diff_cleanupSemantic(p),p.push(new i.Diff(0,""));for(var g=0,m=0,v=0,x="",S="";g<p.length;){switch(p[g][0]){case 1:v++,S+=p[g][1];break;case-1:m++,x+=p[g][1];break;case 0:if(m>=1&&v>=1){p.splice(g-m-v,m+v),g=g-m-v;for(var E=this.diff_main(x,S,!1,o),A=E.length-1;A>=0;A--)p.splice(g,0,E[A]);g+=E.length}v=0,m=0,x="",S=""}g++}return p.pop(),p},i.prototype.diff_bisect_=function(r,s,o){for(var d=r.length,h=s.length,p=Math.ceil((d+h)/2),g=p,m=2*p,v=new Array(m),x=new Array(m),S=0;S<m;S++)v[S]=-1,x[S]=-1;v[g+1]=0,x[g+1]=0;for(var E=d-h,A=E%2!=0,C=0,_=0,U=0,I=0,O=0;O<p&&!(new Date().getTime()>o);O++){for(var $=-O+C;$<=O-_;$+=2){for(var Y=g+$,F=(re=$==-O||$!=O&&v[Y-1]<v[Y+1]?v[Y+1]:v[Y-1]+1)-$;re<d&&F<h&&r.charAt(re)==s.charAt(F);)re++,F++;if(v[Y]=re,re>d)_+=2;else if(F>h)C+=2;else if(A&&(K=g+E-$)>=0&&K<m&&x[K]!=-1&&re>=(R=d-x[K]))return this.diff_bisectSplit_(r,s,re,F,o)}for(var H=-O+U;H<=O-I;H+=2){for(var R,K=g+H,ie=(R=H==-O||H!=O&&x[K-1]<x[K+1]?x[K+1]:x[K-1]+1)-H;R<d&&ie<h&&r.charAt(d-R-1)==s.charAt(h-ie-1);)R++,ie++;if(x[K]=R,R>d)I+=2;else if(ie>h)U+=2;else if(!A&&(Y=g+E-H)>=0&&Y<m&&v[Y]!=-1){var re;if(F=g+(re=v[Y])-Y,re>=(R=d-R))return this.diff_bisectSplit_(r,s,re,F,o)}}}return[new i.Diff(-1,r),new i.Diff(1,s)]},i.prototype.diff_bisectSplit_=function(r,s,o,d,h){var p=r.substring(0,o),g=s.substring(0,d),m=r.substring(o),v=s.substring(d),x=this.diff_main(p,g,!1,h),S=this.diff_main(m,v,!1,h);return x.concat(S)},i.prototype.diff_linesToChars_=function(r,s){var o=[],d={};function h(m){for(var v="",x=0,S=-1,E=o.length;S<m.length-1;){(S=m.indexOf(`
|
|
344
|
+
`,x))==-1&&(S=m.length-1);var A=m.substring(x,S+1);(d.hasOwnProperty?d.hasOwnProperty(A):d[A]!==void 0)?v+=String.fromCharCode(d[A]):(E==p&&(A=m.substring(x),S=m.length),v+=String.fromCharCode(E),d[A]=E,o[E++]=A),x=S+1}return v}o[0]="";var p=4e4,g=h(r);return p=65535,{chars1:g,chars2:h(s),lineArray:o}},i.prototype.diff_charsToLines_=function(r,s){for(var o=0;o<r.length;o++){for(var d=r[o][1],h=[],p=0;p<d.length;p++)h[p]=s[d.charCodeAt(p)];r[o][1]=h.join("")}},i.prototype.diff_commonPrefix=function(r,s){if(!r||!s||r.charAt(0)!=s.charAt(0))return 0;for(var o=0,d=Math.min(r.length,s.length),h=d,p=0;o<h;)r.substring(p,h)==s.substring(p,h)?p=o=h:d=h,h=Math.floor((d-o)/2+o);return h},i.prototype.diff_commonSuffix=function(r,s){if(!r||!s||r.charAt(r.length-1)!=s.charAt(s.length-1))return 0;for(var o=0,d=Math.min(r.length,s.length),h=d,p=0;o<h;)r.substring(r.length-h,r.length-p)==s.substring(s.length-h,s.length-p)?p=o=h:d=h,h=Math.floor((d-o)/2+o);return h},i.prototype.diff_commonOverlap_=function(r,s){var o=r.length,d=s.length;if(o==0||d==0)return 0;o>d?r=r.substring(o-d):o<d&&(s=s.substring(0,o));var h=Math.min(o,d);if(r==s)return h;for(var p=0,g=1;;){var m=r.substring(h-g),v=s.indexOf(m);if(v==-1)return p;g+=v,v!=0&&r.substring(h-g)!=s.substring(0,g)||(p=g,g++)}},i.prototype.diff_halfMatch_=function(r,s){if(this.Diff_Timeout<=0)return null;var o=r.length>s.length?r:s,d=r.length>s.length?s:r;if(o.length<4||2*d.length<o.length)return null;var h=this;function p(C,_,U){for(var I,O,$,Y,F=C.substring(U,U+Math.floor(C.length/4)),H=-1,R="";(H=_.indexOf(F,H+1))!=-1;){var K=h.diff_commonPrefix(C.substring(U),_.substring(H)),ie=h.diff_commonSuffix(C.substring(0,U),_.substring(0,H));R.length<ie+K&&(R=_.substring(H-ie,H)+_.substring(H,H+K),I=C.substring(0,U-ie),O=C.substring(U+K),$=_.substring(0,H-ie),Y=_.substring(H+K))}return 2*R.length>=C.length?[I,O,$,Y,R]:null}var g,m,v,x,S,E=p(o,d,Math.ceil(o.length/4)),A=p(o,d,Math.ceil(o.length/2));return E||A?(g=A?E&&E[4].length>A[4].length?E:A:E,r.length>s.length?(m=g[0],v=g[1],x=g[2],S=g[3]):(x=g[0],S=g[1],m=g[2],v=g[3]),[m,v,x,S,g[4]]):null},i.prototype.diff_cleanupSemantic=function(r){for(var s=!1,o=[],d=0,h=null,p=0,g=0,m=0,v=0,x=0;p<r.length;)r[p][0]==0?(o[d++]=p,g=v,m=x,v=0,x=0,h=r[p][1]):(r[p][0]==1?v+=r[p][1].length:x+=r[p][1].length,h&&h.length<=Math.max(g,m)&&h.length<=Math.max(v,x)&&(r.splice(o[d-1],0,new i.Diff(-1,h)),r[o[d-1]+1][0]=1,d--,p=--d>0?o[d-1]:-1,g=0,m=0,v=0,x=0,h=null,s=!0)),p++;for(s&&this.diff_cleanupMerge(r),this.diff_cleanupSemanticLossless(r),p=1;p<r.length;){if(r[p-1][0]==-1&&r[p][0]==1){var S=r[p-1][1],E=r[p][1],A=this.diff_commonOverlap_(S,E),C=this.diff_commonOverlap_(E,S);A>=C?(A>=S.length/2||A>=E.length/2)&&(r.splice(p,0,new i.Diff(0,E.substring(0,A))),r[p-1][1]=S.substring(0,S.length-A),r[p+1][1]=E.substring(A),p++):(C>=S.length/2||C>=E.length/2)&&(r.splice(p,0,new i.Diff(0,S.substring(0,C))),r[p-1][0]=1,r[p-1][1]=E.substring(0,E.length-C),r[p+1][0]=-1,r[p+1][1]=S.substring(C),p++),p++}p++}},i.prototype.diff_cleanupSemanticLossless=function(r){function s(C,_){if(!C||!_)return 6;var U=C.charAt(C.length-1),I=_.charAt(0),O=U.match(i.nonAlphaNumericRegex_),$=I.match(i.nonAlphaNumericRegex_),Y=O&&U.match(i.whitespaceRegex_),F=$&&I.match(i.whitespaceRegex_),H=Y&&U.match(i.linebreakRegex_),R=F&&I.match(i.linebreakRegex_),K=H&&C.match(i.blanklineEndRegex_),ie=R&&_.match(i.blanklineStartRegex_);return K||ie?5:H||R?4:O&&!Y&&F?3:Y||F?2:O||$?1:0}for(var o=1;o<r.length-1;){if(r[o-1][0]==0&&r[o+1][0]==0){var d=r[o-1][1],h=r[o][1],p=r[o+1][1],g=this.diff_commonSuffix(d,h);if(g){var m=h.substring(h.length-g);d=d.substring(0,d.length-g),h=m+h.substring(0,h.length-g),p=m+p}for(var v=d,x=h,S=p,E=s(d,h)+s(h,p);h.charAt(0)===p.charAt(0);){d+=h.charAt(0),h=h.substring(1)+p.charAt(0),p=p.substring(1);var A=s(d,h)+s(h,p);A>=E&&(E=A,v=d,x=h,S=p)}r[o-1][1]!=v&&(v?r[o-1][1]=v:(r.splice(o-1,1),o--),r[o][1]=x,S?r[o+1][1]=S:(r.splice(o+1,1),o--))}o++}},i.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,i.whitespaceRegex_=/\s/,i.linebreakRegex_=/[\r\n]/,i.blanklineEndRegex_=/\n\r?\n$/,i.blanklineStartRegex_=/^\r?\n\r?\n/,i.prototype.diff_cleanupEfficiency=function(r){for(var s=!1,o=[],d=0,h=null,p=0,g=!1,m=!1,v=!1,x=!1;p<r.length;)r[p][0]==0?(r[p][1].length<this.Diff_EditCost&&(v||x)?(o[d++]=p,g=v,m=x,h=r[p][1]):(d=0,h=null),v=x=!1):(r[p][0]==-1?x=!0:v=!0,h&&(g&&m&&v&&x||h.length<this.Diff_EditCost/2&&g+m+v+x==3)&&(r.splice(o[d-1],0,new i.Diff(-1,h)),r[o[d-1]+1][0]=1,d--,h=null,g&&m?(v=x=!0,d=0):(p=--d>0?o[d-1]:-1,v=x=!1),s=!0)),p++;s&&this.diff_cleanupMerge(r)},i.prototype.diff_cleanupMerge=function(r){r.push(new i.Diff(0,""));for(var s,o=0,d=0,h=0,p="",g="";o<r.length;)switch(r[o][0]){case 1:h++,g+=r[o][1],o++;break;case-1:d++,p+=r[o][1],o++;break;case 0:d+h>1?(d!==0&&h!==0&&((s=this.diff_commonPrefix(g,p))!==0&&(o-d-h>0&&r[o-d-h-1][0]==0?r[o-d-h-1][1]+=g.substring(0,s):(r.splice(0,0,new i.Diff(0,g.substring(0,s))),o++),g=g.substring(s),p=p.substring(s)),(s=this.diff_commonSuffix(g,p))!==0&&(r[o][1]=g.substring(g.length-s)+r[o][1],g=g.substring(0,g.length-s),p=p.substring(0,p.length-s))),o-=d+h,r.splice(o,d+h),p.length&&(r.splice(o,0,new i.Diff(-1,p)),o++),g.length&&(r.splice(o,0,new i.Diff(1,g)),o++),o++):o!==0&&r[o-1][0]==0?(r[o-1][1]+=r[o][1],r.splice(o,1)):o++,h=0,d=0,p="",g=""}r[r.length-1][1]===""&&r.pop();var m=!1;for(o=1;o<r.length-1;)r[o-1][0]==0&&r[o+1][0]==0&&(r[o][1].substring(r[o][1].length-r[o-1][1].length)==r[o-1][1]?(r[o][1]=r[o-1][1]+r[o][1].substring(0,r[o][1].length-r[o-1][1].length),r[o+1][1]=r[o-1][1]+r[o+1][1],r.splice(o-1,1),m=!0):r[o][1].substring(0,r[o+1][1].length)==r[o+1][1]&&(r[o-1][1]+=r[o+1][1],r[o][1]=r[o][1].substring(r[o+1][1].length)+r[o+1][1],r.splice(o+1,1),m=!0)),o++;m&&this.diff_cleanupMerge(r)},i.prototype.diff_xIndex=function(r,s){var o,d=0,h=0,p=0,g=0;for(o=0;o<r.length&&(r[o][0]!==1&&(d+=r[o][1].length),r[o][0]!==-1&&(h+=r[o][1].length),!(d>s));o++)p=d,g=h;return r.length!=o&&r[o][0]===-1?g:g+(s-p)},i.prototype.diff_prettyHtml=function(r){for(var s=[],o=/&/g,d=/</g,h=/>/g,p=/\n/g,g=0;g<r.length;g++){var m=r[g][0],v=r[g][1].replace(o,"&").replace(d,"<").replace(h,">").replace(p,"¶<br>");switch(m){case 1:s[g]='<ins style="background:#e6ffe6;">'+v+"</ins>";break;case-1:s[g]='<del style="background:#ffe6e6;">'+v+"</del>";break;case 0:s[g]="<span>"+v+"</span>"}}return s.join("")},i.prototype.diff_text1=function(r){for(var s=[],o=0;o<r.length;o++)r[o][0]!==1&&(s[o]=r[o][1]);return s.join("")},i.prototype.diff_text2=function(r){for(var s=[],o=0;o<r.length;o++)r[o][0]!==-1&&(s[o]=r[o][1]);return s.join("")},i.prototype.diff_levenshtein=function(r){for(var s=0,o=0,d=0,h=0;h<r.length;h++){var p=r[h][0],g=r[h][1];switch(p){case 1:o+=g.length;break;case-1:d+=g.length;break;case 0:s+=Math.max(o,d),o=0,d=0}}return s+=Math.max(o,d)},i.prototype.diff_toDelta=function(r){for(var s=[],o=0;o<r.length;o++)switch(r[o][0]){case 1:s[o]="+"+encodeURI(r[o][1]);break;case-1:s[o]="-"+r[o][1].length;break;case 0:s[o]="="+r[o][1].length}return s.join(" ").replace(/%20/g," ")},i.prototype.diff_fromDelta=function(r,s){for(var o=[],d=0,h=0,p=s.split(/\t/g),g=0;g<p.length;g++){var m=p[g].substring(1);switch(p[g].charAt(0)){case"+":try{o[d++]=new i.Diff(1,decodeURI(m))}catch{throw new Error("Illegal escape in diff_fromDelta: "+m)}break;case"-":case"=":var v=parseInt(m,10);if(isNaN(v)||v<0)throw new Error("Invalid number in diff_fromDelta: "+m);var x=r.substring(h,h+=v);p[g].charAt(0)=="="?o[d++]=new i.Diff(0,x):o[d++]=new i.Diff(-1,x);break;default:if(p[g])throw new Error("Invalid diff operation in diff_fromDelta: "+p[g])}}if(h!=r.length)throw new Error("Delta length ("+h+") does not equal source text length ("+r.length+").");return o},i.prototype.match_main=function(r,s,o){if(r==null||s==null||o==null)throw new Error("Null input. (match_main)");return o=Math.max(0,Math.min(o,r.length)),r==s?0:r.length?r.substring(o,o+s.length)==s?o:this.match_bitap_(r,s,o):-1},i.prototype.match_bitap_=function(r,s,o){if(s.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var d=this.match_alphabet_(s),h=this;function p(F,H){var R=F/s.length,K=Math.abs(o-H);return h.Match_Distance?R+K/h.Match_Distance:K?1:R}var g=this.Match_Threshold,m=r.indexOf(s,o);m!=-1&&(g=Math.min(p(0,m),g),(m=r.lastIndexOf(s,o+s.length))!=-1&&(g=Math.min(p(0,m),g)));var v,x,S=1<<s.length-1;m=-1;for(var E,A=s.length+r.length,C=0;C<s.length;C++){for(v=0,x=A;v<x;)p(C,o+x)<=g?v=x:A=x,x=Math.floor((A-v)/2+v);A=x;var _=Math.max(1,o-x+1),U=Math.min(o+x,r.length)+s.length,I=Array(U+2);I[U+1]=(1<<C)-1;for(var O=U;O>=_;O--){var $=d[r.charAt(O-1)];if(I[O]=C===0?(I[O+1]<<1|1)&$:(I[O+1]<<1|1)&$|(E[O+1]|E[O])<<1|1|E[O+1],I[O]&S){var Y=p(C,O-1);if(Y<=g){if(g=Y,!((m=O-1)>o))break;_=Math.max(1,2*o-m)}}}if(p(C+1,o)>g)break;E=I}return m},i.prototype.match_alphabet_=function(r){for(var s={},o=0;o<r.length;o++)s[r.charAt(o)]=0;for(o=0;o<r.length;o++)s[r.charAt(o)]|=1<<r.length-o-1;return s},i.prototype.patch_addContext_=function(r,s){if(s.length!=0){if(r.start2===null)throw Error("patch not initialized");for(var o=s.substring(r.start2,r.start2+r.length1),d=0;s.indexOf(o)!=s.lastIndexOf(o)&&o.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)d+=this.Patch_Margin,o=s.substring(r.start2-d,r.start2+r.length1+d);d+=this.Patch_Margin;var h=s.substring(r.start2-d,r.start2);h&&r.diffs.unshift(new i.Diff(0,h));var p=s.substring(r.start2+r.length1,r.start2+r.length1+d);p&&r.diffs.push(new i.Diff(0,p)),r.start1-=h.length,r.start2-=h.length,r.length1+=h.length+p.length,r.length2+=h.length+p.length}},i.prototype.patch_make=function(r,s,o){var d,h;if(typeof r=="string"&&typeof s=="string"&&o===void 0)d=r,(h=this.diff_main(d,s,!0)).length>2&&(this.diff_cleanupSemantic(h),this.diff_cleanupEfficiency(h));else if(r&&typeof r=="object"&&s===void 0&&o===void 0)h=r,d=this.diff_text1(h);else if(typeof r=="string"&&s&&typeof s=="object"&&o===void 0)d=r,h=s;else{if(typeof r!="string"||typeof s!="string"||!o||typeof o!="object")throw new Error("Unknown call format to patch_make.");d=r,h=o}if(h.length===0)return[];for(var p=[],g=new i.patch_obj,m=0,v=0,x=0,S=d,E=d,A=0;A<h.length;A++){var C=h[A][0],_=h[A][1];switch(m||C===0||(g.start1=v,g.start2=x),C){case 1:g.diffs[m++]=h[A],g.length2+=_.length,E=E.substring(0,x)+_+E.substring(x);break;case-1:g.length1+=_.length,g.diffs[m++]=h[A],E=E.substring(0,x)+E.substring(x+_.length);break;case 0:_.length<=2*this.Patch_Margin&&m&&h.length!=A+1?(g.diffs[m++]=h[A],g.length1+=_.length,g.length2+=_.length):_.length>=2*this.Patch_Margin&&m&&(this.patch_addContext_(g,S),p.push(g),g=new i.patch_obj,m=0,S=E,v=x)}C!==1&&(v+=_.length),C!==-1&&(x+=_.length)}return m&&(this.patch_addContext_(g,S),p.push(g)),p},i.prototype.patch_deepCopy=function(r){for(var s=[],o=0;o<r.length;o++){var d=r[o],h=new i.patch_obj;h.diffs=[];for(var p=0;p<d.diffs.length;p++)h.diffs[p]=new i.Diff(d.diffs[p][0],d.diffs[p][1]);h.start1=d.start1,h.start2=d.start2,h.length1=d.length1,h.length2=d.length2,s[o]=h}return s},i.prototype.patch_apply=function(r,s){if(r.length==0)return[s,[]];r=this.patch_deepCopy(r);var o=this.patch_addPadding(r);s=o+s+o,this.patch_splitMax(r);for(var d=0,h=[],p=0;p<r.length;p++){var g,m,v=r[p].start2+d,x=this.diff_text1(r[p].diffs),S=-1;if(x.length>this.Match_MaxBits?(g=this.match_main(s,x.substring(0,this.Match_MaxBits),v))!=-1&&((S=this.match_main(s,x.substring(x.length-this.Match_MaxBits),v+x.length-this.Match_MaxBits))==-1||g>=S)&&(g=-1):g=this.match_main(s,x,v),g==-1)h[p]=!1,d-=r[p].length2-r[p].length1;else if(h[p]=!0,d=g-v,x==(m=S==-1?s.substring(g,g+x.length):s.substring(g,S+this.Match_MaxBits)))s=s.substring(0,g)+this.diff_text2(r[p].diffs)+s.substring(g+x.length);else{var E=this.diff_main(x,m,!1);if(x.length>this.Match_MaxBits&&this.diff_levenshtein(E)/x.length>this.Patch_DeleteThreshold)h[p]=!1;else{this.diff_cleanupSemanticLossless(E);for(var A,C=0,_=0;_<r[p].diffs.length;_++){var U=r[p].diffs[_];U[0]!==0&&(A=this.diff_xIndex(E,C)),U[0]===1?s=s.substring(0,g+A)+U[1]+s.substring(g+A):U[0]===-1&&(s=s.substring(0,g+A)+s.substring(g+this.diff_xIndex(E,C+U[1].length))),U[0]!==-1&&(C+=U[1].length)}}}}return[s=s.substring(o.length,s.length-o.length),h]},i.prototype.patch_addPadding=function(r){for(var s=this.Patch_Margin,o="",d=1;d<=s;d++)o+=String.fromCharCode(d);for(d=0;d<r.length;d++)r[d].start1+=s,r[d].start2+=s;var h=r[0],p=h.diffs;if(p.length==0||p[0][0]!=0)p.unshift(new i.Diff(0,o)),h.start1-=s,h.start2-=s,h.length1+=s,h.length2+=s;else if(s>p[0][1].length){var g=s-p[0][1].length;p[0][1]=o.substring(p[0][1].length)+p[0][1],h.start1-=g,h.start2-=g,h.length1+=g,h.length2+=g}return(p=(h=r[r.length-1]).diffs).length==0||p[p.length-1][0]!=0?(p.push(new i.Diff(0,o)),h.length1+=s,h.length2+=s):s>p[p.length-1][1].length&&(g=s-p[p.length-1][1].length,p[p.length-1][1]+=o.substring(0,g),h.length1+=g,h.length2+=g),o},i.prototype.patch_splitMax=function(r){for(var s=this.Match_MaxBits,o=0;o<r.length;o++)if(!(r[o].length1<=s)){var d=r[o];r.splice(o--,1);for(var h=d.start1,p=d.start2,g="";d.diffs.length!==0;){var m=new i.patch_obj,v=!0;for(m.start1=h-g.length,m.start2=p-g.length,g!==""&&(m.length1=m.length2=g.length,m.diffs.push(new i.Diff(0,g)));d.diffs.length!==0&&m.length1<s-this.Patch_Margin;){var x=d.diffs[0][0],S=d.diffs[0][1];x===1?(m.length2+=S.length,p+=S.length,m.diffs.push(d.diffs.shift()),v=!1):x===-1&&m.diffs.length==1&&m.diffs[0][0]==0&&S.length>2*s?(m.length1+=S.length,h+=S.length,v=!1,m.diffs.push(new i.Diff(x,S)),d.diffs.shift()):(S=S.substring(0,s-m.length1-this.Patch_Margin),m.length1+=S.length,h+=S.length,x===0?(m.length2+=S.length,p+=S.length):v=!1,m.diffs.push(new i.Diff(x,S)),S==d.diffs[0][1]?d.diffs.shift():d.diffs[0][1]=d.diffs[0][1].substring(S.length))}g=(g=this.diff_text2(m.diffs)).substring(g.length-this.Patch_Margin);var E=this.diff_text1(d.diffs).substring(0,this.Patch_Margin);E!==""&&(m.length1+=E.length,m.length2+=E.length,m.diffs.length!==0&&m.diffs[m.diffs.length-1][0]===0?m.diffs[m.diffs.length-1][1]+=E:m.diffs.push(new i.Diff(0,E))),v||r.splice(++o,0,m)}}},i.prototype.patch_toText=function(r){for(var s=[],o=0;o<r.length;o++)s[o]=r[o];return s.join("")},i.prototype.patch_fromText=function(r){var s=[];if(!r)return s;for(var o=r.split(`
|
|
345
|
+
`),d=0,h=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;d<o.length;){var p=o[d].match(h);if(!p)throw new Error("Invalid patch string: "+o[d]);var g=new i.patch_obj;for(s.push(g),g.start1=parseInt(p[1],10),p[2]===""?(g.start1--,g.length1=1):p[2]=="0"?g.length1=0:(g.start1--,g.length1=parseInt(p[2],10)),g.start2=parseInt(p[3],10),p[4]===""?(g.start2--,g.length2=1):p[4]=="0"?g.length2=0:(g.start2--,g.length2=parseInt(p[4],10)),d++;d<o.length;){var m=o[d].charAt(0);try{var v=decodeURI(o[d].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+v)}if(m=="-")g.diffs.push(new i.Diff(-1,v));else if(m=="+")g.diffs.push(new i.Diff(1,v));else if(m==" ")g.diffs.push(new i.Diff(0,v));else{if(m=="@")break;if(m!=="")throw new Error('Invalid patch mode "'+m+'" in: '+v)}d++}}return s},(i.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var r,s=["@@ -"+(this.length1===0?this.start1+",0":this.length1==1?this.start1+1:this.start1+1+","+this.length1)+" +"+(this.length2===0?this.start2+",0":this.length2==1?this.start2+1:this.start2+1+","+this.length2)+` @@
|
|
346
|
+
`],o=0;o<this.diffs.length;o++){switch(this.diffs[o][0]){case 1:r="+";break;case-1:r="-";break;case 0:r=" "}s[o+1]=r+encodeURI(this.diffs[o][1])+`
|
|
347
|
+
`}return s.join("").replace(/%20/g," ")},l.exports=i,l.exports.diff_match_patch=i,l.exports.DIFF_DELETE=-1,l.exports.DIFF_INSERT=1,l.exports.DIFF_EQUAL=0}));Lo.DIFF_EQUAL;Lo.DIFF_DELETE;Lo.DIFF_INSERT;var YS=["enhancers"],qS=function(l){var i,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.enhancers,o=s===void 0?[]:s,d=it(RS(l,na(r,YS)),2),h=d[0],p=d[1],g=[ap(h),ap(p)],m=(i=[g[0],g[1]],o.reduce((function(C,_){return _(C)}),i)),v=it(m,2),x=v[0],S=v[1],E=[x.map(lp),S.map(lp)],A=E[1];return{old:E[0].map((function(C){var _;return(_=C.children)!==null&&_!==void 0?_:[]})),new:A.map((function(C){var _;return(_=C.children)!==null&&_!==void 0?_:[]}))}};const IS=[{value:"suggestion",label:"Suggestion"},{value:"must_fix",label:"Must Fix"},{value:"question",label:"Question"},{value:"nitpick",label:"Nitpick"}];function ds({onSave:l,onAsk:i,onCancel:r,initialBody:s="",initialType:o="suggestion",file:d,line:h}){const[p,g]=D.useState(s),[m,v]=D.useState(o),[x,S]=D.useState(!1),[E,A]=D.useState(null),C=D.useRef(null),_=Fe(Y=>Y.setDraftComment);D.useEffect(()=>{var Y;(Y=C.current)==null||Y.focus()},[]),D.useEffect(()=>{d!==void 0&&h!==void 0&&(p.trim()?_({body:p,type:m,file:d,line:h}):_(null))},[p,m,d,h,_]);function U(){p.trim()&&(_(null),l(p.trim(),m))}async function I(){if(!i||!p.trim())return;S(!0),A(null);const Y=await i(p.trim());S(!1),Y.ok?(_(null),r()):A(Y.error??"Could not ask the agent")}function O(){_(null),r()}function $(Y){(Y.metaKey||Y.ctrlKey)&&Y.key==="Enter"?(Y.preventDefault(),U()):Y.key==="Escape"&&(Y.preventDefault(),O())}return f.jsxs("div",{className:"p-3 space-y-2",onKeyDown:$,children:[f.jsx("textarea",{ref:C,value:p,onChange:Y=>g(Y.target.value),placeholder:"Write a comment...",rows:3,className:"w-full bg-background border border-border rounded px-3 py-2 text-text-primary text-sm placeholder:text-text-secondary/50 resize-none focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent"}),E&&f.jsx("p",{role:"alert",className:"text-xs text-danger",children:E}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("select",{value:m,onChange:Y=>v(Y.target.value),className:"bg-background border border-border rounded px-2 py-1.5 text-text-primary text-xs focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",children:IS.map(Y=>f.jsx("option",{value:Y.value,children:Y.label},Y.value))}),f.jsx("div",{className:"flex-1"}),f.jsx("button",{onClick:O,className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"}),i&&f.jsx("button",{onClick:I,disabled:!p.trim()||x,title:"Start a thread the agent answers while you review, instead of a comment sent with your decision",className:"px-3 py-1.5 text-xs font-medium rounded text-text-secondary border border-border hover:text-text-primary hover:border-accent/40 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:x?"Asking…":"Ask agent now"}),f.jsx("button",{onClick:U,disabled:!p.trim(),className:"px-3 py-1.5 text-xs font-medium rounded bg-accent/20 text-accent border border-accent/30 hover:bg-accent/30 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Save"})]})]})}const XS={must_fix:"Must Fix",suggestion:"Suggestion",question:"Question",nitpick:"Nitpick"};function FS({comments:l,isFormOpen:i,file:r,line:s,onAdd:o,onAsk:d,onUpdate:h,onDelete:p,onOpenForm:g,onCloseForm:m}){const[v,x]=D.useState(null);return f.jsxs("div",{className:"border-t border-border bg-surface",children:[l.map(({comment:S,index:E})=>v===E?f.jsx(ds,{initialBody:S.body,initialType:S.type,file:r,line:s,onSave:(A,C)=>{h(E,A,C),x(null)},onCancel:()=>x(null)},E):f.jsxs("div",{className:"px-3 py-2 border-b border-border/50 group/comment",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[f.jsx("span",{className:`text-[10px] font-bold px-1.5 py-0.5 rounded border ${Bv[S.type]}`,children:XS[S.type]}),f.jsxs("span",{className:"text-text-secondary text-[10px] font-mono",children:[r,":",s]}),f.jsx("div",{className:"flex-1"}),f.jsx("button",{onClick:()=>x(E),className:"opacity-0 group-hover/comment:opacity-100 p-0.5 text-text-secondary hover:text-text-primary transition-all cursor-pointer",title:"Edit comment",children:f.jsx(Cv,{className:"w-3 h-3"})}),f.jsx("button",{onClick:()=>p(E),className:"opacity-0 group-hover/comment:opacity-100 p-0.5 text-text-secondary hover:text-danger transition-all cursor-pointer",title:"Delete comment",children:f.jsx(Dv,{className:"w-3 h-3"})})]}),f.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap",children:S.body})]},E)),i&&v===null&&f.jsx(ds,{file:r,line:s,onSave:(S,E)=>{o(S,E),m()},onAsk:d,onCancel:m}),!i&&l.length>0&&v===null&&f.jsxs("button",{onClick:g,className:"flex items-center gap-1 px-3 py-1.5 text-xs text-text-secondary hover:text-accent transition-colors cursor-pointer",children:[f.jsx(Np,{className:"w-3 h-3"}),"Add comment"]})]})}function $S(l){const i=l.replies??[];return i.length>0?i[i.length-1].author:l.author??"agent"}function Uo(l){return!l.dismissed&&$S(l)==="reviewer"}function Bo(l){const i=l.replies??[];return i.length>0?i[i.length-1].createdAt:l.createdAt}function ty(l,i){return i!==void 0&&i>Bo(l)}const ny=5e3;function ZS(l,i,r){return ty(l,i)?"picked_up":r-Bo(l)<ny?"pending":"unheard"}function ay(l,i){const[r,s]=D.useState(()=>Date.now());let o;for(const d of l){if(!Uo(d)||ty(d,i))continue;const h=Bo(d)+ny;h>r&&(o===void 0||h<o)&&(o=h)}return D.useEffect(()=>{if(o===void 0)return;const d=setTimeout(()=>s(Date.now()),Math.max(0,o-Date.now()));return()=>clearTimeout(d)},[o]),d=>ZS(d,i,r)}function fo({placeholder:l,submitLabel:i,onSubmit:r,onCancel:s}){const[o,d]=D.useState(""),[h,p]=D.useState(!1),[g,m]=D.useState(null),v=D.useRef(null);D.useEffect(()=>{var S;(S=v.current)==null||S.focus()},[]);async function x(){if(!o.trim()||h)return;p(!0),m(null);const S=await r(o.trim());p(!1),S.ok?d(""):m(S.error??"Couldn't send")}return f.jsxs("div",{className:"px-3 py-2 space-y-1.5",children:[f.jsx("textarea",{ref:v,value:o,onChange:S=>d(S.target.value),onKeyDown:S=>{S.key==="Enter"&&(S.metaKey||S.ctrlKey)?(S.preventDefault(),x()):S.key==="Escape"&&s&&(S.preventDefault(),s())},placeholder:l,rows:2,className:"w-full bg-background border border-border rounded px-2 py-1.5 text-text-primary text-sm focus:outline-none focus:border-accent resize-y"}),g&&f.jsx("p",{className:"text-danger text-xs",children:g}),f.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s&&f.jsx("button",{onClick:s,className:"px-2 py-1 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"}),f.jsx("button",{onClick:()=>void x(),disabled:!o.trim()||h,className:"px-2.5 py-1 text-xs rounded bg-accent/15 text-accent hover:bg-accent/25 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:h?"Sending…":i})]})]})}const VS={finding:Aa,suggestion:No,question:xo,warning:wl};function ly({author:l,agent:i}){return l==="reviewer"?f.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-semibold text-accent",children:[f.jsx(zv,{className:"w-3 h-3"}),"You"]}):f.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] text-text-secondary",children:[f.jsx(bo,{className:"w-3 h-3"}),i??"agent"]})}function KS({reply:l}){return f.jsxs("div",{className:"pl-3 ml-1.5 border-l border-border/70 py-1",children:[f.jsx(ly,{author:l.author,agent:l.agent}),f.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap mt-0.5",children:l.body})]})}function QS({sessionId:l}){const i=`Answer my DiffPrism comments${l?` on ${l}`:""}`,[r,s]=D.useState("idle");return f.jsxs("div",{className:"mt-1.5 text-[11px]",children:[f.jsx("p",{className:"text-warning",children:"No agent is listening, so nothing will answer this. Ask Claude Code:"}),f.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[f.jsx("code",{className:"select-all px-1.5 py-0.5 rounded border border-border bg-background text-text-primary",children:i}),f.jsxs("button",{onClick:()=>{navigator.clipboard.writeText(i).then(()=>s("copied"),()=>s("failed"))},className:"inline-flex items-center gap-1 text-text-secondary hover:text-accent transition-colors cursor-pointer",title:"Copy prompt",children:[r==="copied"?f.jsx(El,{className:"w-3 h-3"}):f.jsx(vv,{className:"w-3 h-3"}),r==="copied"?"Copied":r==="failed"?"Copy failed — select the text instead":"Copy"]})]})]})}function JS({annotations:l,onDismiss:i,onReply:r,sessionId:s,agentReadAt:o}){const[d,h]=D.useState(null),p=ay(l,o);if(l.length===0)return null;const g=l.some(m=>{var v;return(m.author??"agent")==="reviewer"||(((v=m.replies)==null?void 0:v.length)??0)>0});return f.jsxs("div",{className:"border-t border-border bg-surface",children:[f.jsxs("div",{className:"px-3 py-1.5 flex items-center gap-1.5 border-b border-border/50",children:[g?f.jsx(Nl,{className:"w-3 h-3 text-text-secondary"}):f.jsx(bo,{className:"w-3 h-3 text-text-secondary"}),f.jsx("span",{className:"text-[10px] font-semibold text-text-secondary uppercase tracking-wide",children:g?`Discussion${l.length>1?` (${l.length})`:""}`:`Agent ${l.length===1?"Annotation":`Annotations (${l.length})`}`})]}),l.map(m=>{const v=m.author??"agent",x=VS[m.type]??Aa,S=os[m.category]??os.other,E=Dm[m.category]??Dm.other,A=m.replies??[];return f.jsxs("div",{"data-annotation-id":m.id,className:"px-3 py-2 border-b border-border/50 group/annotation",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[v==="agent"?f.jsxs(f.Fragment,{children:[f.jsx(x,{className:`w-3.5 h-3.5 flex-shrink-0 ${S}`}),f.jsx("span",{className:`text-[10px] font-bold px-1.5 py-0.5 rounded border ${E}`,children:m.category}),f.jsx("span",{className:"text-text-secondary text-[10px]",children:m.source.agent})]}):f.jsx(ly,{author:"reviewer"}),f.jsx("div",{className:"flex-1"}),f.jsx("button",{onClick:()=>i(m.id),className:"opacity-0 group-hover/annotation:opacity-100 p-0.5 rounded hover:bg-text-primary/10 text-text-secondary transition-all cursor-pointer flex-shrink-0",title:"Dismiss",children:f.jsx(kr,{className:"w-3 h-3"})})]}),f.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap",children:m.body}),A.length>0&&f.jsx("div",{className:"mt-1.5 space-y-0.5",children:A.map(C=>f.jsx(KS,{reply:C},C.id))}),Uo(m)&&(p(m)==="unheard"?f.jsx(QS,{sessionId:s}):f.jsx("p",{className:"mt-1.5 text-[11px] text-text-secondary italic",children:"Waiting for the agent to reply."})),r&&(d===m.id?f.jsx("div",{className:"-mx-3",children:f.jsx(fo,{placeholder:"Reply…",submitLabel:"Reply",onSubmit:async C=>{const _=await r(m.id,C);return _.ok&&h(null),_},onCancel:()=>h(null)})}):f.jsx("button",{onClick:()=>h(m.id),className:"mt-1 text-[11px] text-text-secondary hover:text-accent transition-colors cursor-pointer",children:"Reply"}))]},m.id)})]})}function WS(l){const i=Fe(s=>s.focusedAnnotationId),r=Fe(s=>s.focusAnnotation);D.useEffect(()=>{if(!i)return;const s=document.querySelector(`[data-annotation-id="${i}"]`);s&&(s.scrollIntoView({behavior:"smooth",block:"center"}),r(null))},[i,r,l])}sn.displayName="clike";sn.aliases=[];function sn(l){l.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Mr.displayName="c";Mr.aliases=[];function Mr(l){l.register(sn),l.languages.c=l.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),l.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),l.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},l.languages.c.string],char:l.languages.c.char,comment:l.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:l.languages.c}}}}),l.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete l.languages.c.boolean}ws.displayName="cpp";ws.aliases=[];function ws(l){l.register(Mr),(function(i){var r=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,s=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return r.source});i.languages.cpp=i.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:r,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),i.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return s})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),i.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:i.languages.cpp}}}}),i.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),i.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:i.languages.extend("cpp",{})}}),i.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},i.languages.cpp["base-clause"])})(l)}Ho.displayName="arduino";Ho.aliases=["ino"];function Ho(l){l.register(ws),l.languages.arduino=l.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),l.languages.ino=l.languages.arduino}Go.displayName="bash";Go.aliases=["sh","shell"];function Go(l){(function(i){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",s={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:s,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};i.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:s}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},s.inside=i.languages.bash;for(var d=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],h=o.variable[1].inside,p=0;p<d.length;p++)h[d[p]]=i.languages.bash[d[p]];i.languages.sh=i.languages.bash,i.languages.shell=i.languages.bash})(l)}Yo.displayName="csharp";Yo.aliases=["cs","dotnet"];function Yo(l){l.register(sn),(function(i){function r(ce,N){return ce.replace(/<<(\d+)>>/g,function(q,P){return"(?:"+N[+P]+")"})}function s(ce,N,q){return RegExp(r(ce,N),"")}function o(ce,N){for(var q=0;q<N;q++)ce=ce.replace(/<<self>>/g,function(){return"(?:"+ce+")"});return ce.replace(/<<self>>/g,"[^\\s\\S]")}var d={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function h(ce){return"\\b(?:"+ce.trim().replace(/ /g,"|")+")\\b"}var p=h(d.typeDeclaration),g=RegExp(h(d.type+" "+d.typeDeclaration+" "+d.contextual+" "+d.other)),m=h(d.typeDeclaration+" "+d.contextual+" "+d.other),v=h(d.type+" "+d.typeDeclaration+" "+d.other),x=o(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),S=o(/\((?:[^()]|<<self>>)*\)/.source,2),E=/@?\b[A-Za-z_]\w*\b/.source,A=r(/<<0>>(?:\s*<<1>>)?/.source,[E,x]),C=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[m,A]),_=/\[\s*(?:,\s*)*\]/.source,U=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[C,_]),I=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[x,S,_]),O=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[I]),$=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[O,C,_]),Y={keyword:g,punctuation:/[<>()?,.:[\]]/},F=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,H=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;i.languages.csharp=i.languages.extend("clike",{string:[{pattern:s(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:s(/(^|[^@$\\])<<0>>/.source,[H]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:s(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[C]),lookbehind:!0,inside:Y},{pattern:s(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[E,$]),lookbehind:!0,inside:Y},{pattern:s(/(\busing\s+)<<0>>(?=\s*=)/.source,[E]),lookbehind:!0},{pattern:s(/(\b<<0>>\s+)<<1>>/.source,[p,A]),lookbehind:!0,inside:Y},{pattern:s(/(\bcatch\s*\(\s*)<<0>>/.source,[C]),lookbehind:!0,inside:Y},{pattern:s(/(\bwhere\s+)<<0>>/.source,[E]),lookbehind:!0},{pattern:s(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[U]),lookbehind:!0,inside:Y},{pattern:s(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[$,v,E]),inside:Y}],keyword:g,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),i.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),i.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:s(/([(,]\s*)<<0>>(?=\s*:)/.source,[E]),lookbehind:!0,alias:"punctuation"}}),i.languages.insertBefore("csharp","class-name",{namespace:{pattern:s(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[E]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:s(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[S]),lookbehind:!0,alias:"class-name",inside:Y},"return-type":{pattern:s(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[$,C]),inside:Y,alias:"class-name"},"constructor-invocation":{pattern:s(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[$]),lookbehind:!0,inside:Y,alias:"class-name"},"generic-method":{pattern:s(/<<0>>\s*<<1>>(?=\s*\()/.source,[E,x]),inside:{function:s(/^<<0>>/.source,[E]),generic:{pattern:RegExp(x),alias:"class-name",inside:Y}}},"type-list":{pattern:s(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[p,A,E,$,g.source,S,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:s(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[A,S]),lookbehind:!0,greedy:!0,inside:i.languages.csharp},keyword:g,"class-name":{pattern:RegExp($),greedy:!0,inside:Y},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var K=H+"|"+F,ie=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[K]),re=o(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[ie]),2),fe=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ne=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[C,re]);i.languages.insertBefore("csharp","class-name",{attribute:{pattern:s(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[fe,ne]),lookbehind:!0,greedy:!0,inside:{target:{pattern:s(/^<<0>>(?=\s*:)/.source,[fe]),alias:"keyword"},"attribute-arguments":{pattern:s(/\(<<0>>*\)/.source,[re]),inside:i.languages.csharp},"class-name":{pattern:RegExp(C),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ee=/:[^}\r\n]+/.source,W=o(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[ie]),2),k=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,ee]),L=o(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[K]),2),le=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,ee]);function ue(ce,N){return{interpolation:{pattern:s(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[ce]),lookbehind:!0,inside:{"format-string":{pattern:s(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[N,ee]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:i.languages.csharp}}},string:/[\s\S]+/}}i.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:s(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[k]),lookbehind:!0,greedy:!0,inside:ue(k,W)},{pattern:s(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[le]),lookbehind:!0,greedy:!0,inside:ue(le,L)}],char:{pattern:RegExp(F),greedy:!0}}),i.languages.dotnet=i.languages.cs=i.languages.csharp})(l)}Dr.displayName="markup";Dr.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Dr(l){l.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},l.languages.markup.tag.inside["attr-value"].inside.entity=l.languages.markup.entity,l.languages.markup.doctype.inside["internal-subset"].inside=l.languages.markup,l.hooks.add("wrap",function(i){i.type==="entity"&&(i.attributes.title=i.content.value.replace(/&/,"&"))}),Object.defineProperty(l.languages.markup.tag,"addInlined",{value:function(r,s){var o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:l.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var d={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};d["language-"+s]={pattern:/[\s\S]+/,inside:l.languages[s]};var h={};h[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:d},l.languages.insertBefore("markup","cdata",h)}}),Object.defineProperty(l.languages.markup.tag,"addAttribute",{value:function(i,r){l.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:l.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),l.languages.html=l.languages.markup,l.languages.mathml=l.languages.markup,l.languages.svg=l.languages.markup,l.languages.xml=l.languages.extend("markup",{}),l.languages.ssml=l.languages.xml,l.languages.atom=l.languages.xml,l.languages.rss=l.languages.xml}_l.displayName="css";_l.aliases=[];function _l(l){(function(i){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;i.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},i.languages.css.atrule.inside.rest=i.languages.css;var s=i.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))})(l)}qo.displayName="diff";qo.aliases=[];function qo(l){(function(i){i.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(s){var o=r[s],d=[];/^\w+$/.test(s)||d.push(/\w+/.exec(s)[0]),s==="diff"&&d.push("bold"),i.languages.diff[s]={pattern:RegExp("^(?:["+o+`].*(?:\r
|
|
348
|
+
?|
|
|
349
|
+
|(?![\\s\\S])))+`,"m"),alias:d,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(s)[0]}}}}),Object.defineProperty(i.languages.diff,"PREFIXES",{value:r})})(l)}Io.displayName="go";Io.aliases=[];function Io(l){l.register(sn),l.languages.go=l.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),l.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete l.languages.go["class-name"]}Xo.displayName="ini";Xo.aliases=[];function Xo(l){l.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}Fo.displayName="java";Fo.aliases=[];function Fo(l){l.register(sn),(function(i){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,s=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(/(^|[^\w.])/.source+s+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};i.languages.java=i.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(/(^|[^\w.])/.source+s+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:o.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+s+/[A-Z]\w*\b/.source),lookbehind:!0,inside:o.inside}],keyword:r,function:[i.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),i.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),i.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+s+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:o.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+s+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:o.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(l)}$o.displayName="regex";$o.aliases=[];function $o(l){(function(i){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,o={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},d={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},h="(?:[^\\\\-]|"+s.source+")",p=RegExp(h+"-"+h),g={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};i.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:p,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":d,escape:s}},"special-escape":r,"char-set":o,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":g}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":g}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(l)}As.displayName="javascript";As.aliases=["js"];function As(l){l.register(sn),l.languages.javascript=l.languages.extend("clike",{"class-name":[l.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),l.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,l.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:l.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:l.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:l.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:l.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:l.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),l.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:l.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),l.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),l.languages.markup&&(l.languages.markup.tag.addInlined("script","javascript"),l.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),l.languages.js=l.languages.javascript}Zo.displayName="json";Zo.aliases=["webmanifest"];function Zo(l){l.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},l.languages.webmanifest=l.languages.json}Vo.displayName="kotlin";Vo.aliases=["kt","kts"];function Vo(l){l.register(sn),(function(i){i.languages.kotlin=i.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete i.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:i.languages.kotlin}};i.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete i.languages.kotlin.string,i.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),i.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),i.languages.kt=i.languages.kotlin,i.languages.kts=i.languages.kotlin})(l)}Ko.displayName="less";Ko.aliases=[];function Ko(l){l.register(_l),l.languages.less=l.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),l.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}Qo.displayName="lua";Qo.aliases=[];function Qo(l){l.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}Jo.displayName="makefile";Jo.aliases=[];function Jo(l){l.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}Wo.displayName="yaml";Wo.aliases=["yml"];function Wo(l){(function(i){var r=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+s.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+s.source+")?)",d=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),h=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function p(g,m){m=(m||"").replace(/m/g,"")+"m";var v=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return g});return RegExp(v,m)}i.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+d+"|"+h+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:p(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:p(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:p(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:p(h),lookbehind:!0,greedy:!0},number:{pattern:p(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:s,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},i.languages.yml=i.languages.yaml})(l)}Po.displayName="markdown";Po.aliases=["md"];function Po(l){l.register(Dr),(function(i){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function s(p){return p=p.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,d=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),h=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;i.languages.markdown=i.languages.extend("markup",{}),i.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:i.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+d+h+"(?:"+d+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+d+h+")(?:"+d+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:i.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+d+")"+h+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+d+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:i.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:s(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:s(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:s(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:s(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(g){p!==g&&(i.languages.markdown[p].inside.content.inside[g]=i.languages.markdown[g])})}),i.hooks.add("after-tokenize",function(p){if(p.language!=="markdown"&&p.language!=="md")return;function g(m){if(!(!m||typeof m=="string"))for(var v=0,x=m.length;v<x;v++){var S=m[v];if(S.type!=="code"){g(S.content);continue}var E=S.content[1],A=S.content[3];if(E&&A&&E.type==="code-language"&&A.type==="code-block"&&typeof E.content=="string"){var C=E.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");C=(/[a-z][\w-]*/i.exec(C)||[""])[0].toLowerCase();var _="language-"+C;A.alias?typeof A.alias=="string"?A.alias=[A.alias,_]:A.alias.push(_):A.alias=[_]}}}g(p.tokens)}),i.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var g="",m=0,v=p.classes.length;m<v;m++){var x=p.classes[m],S=/language-(.+)/.exec(x);if(S){g=S[1];break}}var E=i.languages[g];if(E)p.content=i.highlight(p.content.value,E,g);else if(g&&g!=="none"&&i.plugins.autoloader){var A="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);p.attributes.id=A,i.plugins.autoloader.loadLanguages(g,function(){var C=document.getElementById(A);C&&(C.innerHTML=i.highlight(C.textContent,i.languages[g],g))})}}}),RegExp(i.languages.markup.tag.pattern.source,"gi"),i.languages.md=i.languages.markdown})(l)}ef.displayName="objectivec";ef.aliases=["objc"];function ef(l){l.register(Mr),l.languages.objectivec=l.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete l.languages.objectivec["class-name"],l.languages.objc=l.languages.objectivec}tf.displayName="perl";tf.aliases=[];function tf(l){(function(i){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;i.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(l)}Ts.displayName="markup-templating";Ts.aliases=[];function Ts(l){l.register(Dr),(function(i){function r(s,o){return"___"+s.toUpperCase()+o+"___"}Object.defineProperties(i.languages["markup-templating"]={},{buildPlaceholders:{value:function(s,o,d,h){if(s.language===o){var p=s.tokenStack=[];s.code=s.code.replace(d,function(g){if(typeof h=="function"&&!h(g))return g;for(var m=p.length,v;s.code.indexOf(v=r(o,m))!==-1;)++m;return p[m]=g,v}),s.grammar=i.languages.markup}}},tokenizePlaceholders:{value:function(s,o){if(s.language!==o||!s.tokenStack)return;s.grammar=i.languages[o];var d=0,h=Object.keys(s.tokenStack);function p(g){for(var m=0;m<g.length&&!(d>=h.length);m++){var v=g[m];if(typeof v=="string"||v.content&&typeof v.content=="string"){var x=h[d],S=s.tokenStack[x],E=typeof v=="string"?v:v.content,A=r(o,x),C=E.indexOf(A);if(C>-1){++d;var _=E.substring(0,C),U=new i.Token(o,i.tokenize(S,s.grammar),"language-"+o,S),I=E.substring(C+A.length),O=[];_&&O.push.apply(O,p([_])),O.push(U),I&&O.push.apply(O,p([I])),typeof v=="string"?g.splice.apply(g,[m,1].concat(O)):v.content=O}}else v.content&&p(v.content)}return g}p(s.tokens)}}})})(l)}nf.displayName="php";nf.aliases=[];function nf(l){l.register(Ts),(function(i){var r=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,s=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,d=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,h=/[{}\[\](),:;]/;i.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:r,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:s,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:d,punctuation:h};var p={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:i.languages.php},g=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:p}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:p}}];i.languages.insertBefore("php","variable",{string:g,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:r,string:g,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:s,number:o,operator:d,punctuation:h}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),i.hooks.add("before-tokenize",function(m){if(/<\?/.test(m.code)){var v=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;i.languages["markup-templating"].buildPlaceholders(m,"php",v)}}),i.hooks.add("after-tokenize",function(m){i.languages["markup-templating"].tokenizePlaceholders(m,"php")})})(l)}af.displayName="python";af.aliases=["py"];function af(l){l.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},l.languages.python["string-interpolation"].inside.interpolation.inside.rest=l.languages.python,l.languages.py=l.languages.python}lf.displayName="r";lf.aliases=[];function lf(l){l.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}rf.displayName="ruby";rf.aliases=["rb"];function rf(l){l.register(sn),(function(i){i.languages.ruby=i.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),i.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:i.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete i.languages.ruby.function;var s="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;i.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+s+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),i.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+s),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+s),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete i.languages.ruby.string,i.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),i.languages.rb=i.languages.ruby})(l)}sf.displayName="rust";sf.aliases=[];function sf(l){(function(i){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,s=0;s<2;s++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),i.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},i.languages.rust["closure-params"].inside.rest=i.languages.rust,i.languages.rust.attribute.inside.string=i.languages.rust.string})(l)}uf.displayName="sass";uf.aliases=[];function uf(l){l.register(_l),(function(i){i.languages.sass=i.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),i.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete i.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,s=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];i.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:s}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:s,important:i.languages.sass.important}}}),delete i.languages.sass.property,delete i.languages.sass.important,i.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(l)}cf.displayName="scss";cf.aliases=[];function cf(l){l.register(_l),l.languages.scss=l.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),l.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),l.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),l.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),l.languages.scss.atrule.inside.rest=l.languages.scss}of.displayName="sql";of.aliases=[];function of(l){l.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}ff.displayName="swift";ff.aliases=[];function ff(l){l.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},l.languages.swift["string-literal"].forEach(function(i){i.inside.interpolation.inside=l.languages.swift})}df.displayName="typescript";df.aliases=["ts"];function df(l){l.register(As),(function(i){i.languages.typescript=i.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),i.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete i.languages.typescript.parameter,delete i.languages.typescript["literal-property"];var r=i.languages.extend("typescript",{});delete r["class-name"],i.languages.typescript["class-name"].inside=r,i.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),i.languages.ts=i.languages.typescript})(l)}Cs.displayName="basic";Cs.aliases=[];function Cs(l){l.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}hf.displayName="vbnet";hf.aliases=[];function hf(l){l.register(Cs),l.languages.vbnet=l.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}class zr{constructor(i,r,s){this.property=i,this.normal=r,s&&(this.space=s)}}zr.prototype.property={};zr.prototype.normal={};zr.prototype.space=null;function ry(l,i){const r={},s={};let o=-1;for(;++o<l.length;)Object.assign(r,l[o].property),Object.assign(s,l[o].normal);return new zr(r,s,i)}function Or(l){return l.toLowerCase()}class Qt{constructor(i,r){this.property=i,this.attribute=r}}Qt.prototype.space=null;Qt.prototype.boolean=!1;Qt.prototype.booleanish=!1;Qt.prototype.overloadedBoolean=!1;Qt.prototype.number=!1;Qt.prototype.commaSeparated=!1;Qt.prototype.spaceSeparated=!1;Qt.prototype.commaOrSpaceSeparated=!1;Qt.prototype.mustUseProperty=!1;Qt.prototype.defined=!1;let PS=0;const xe=ja(),tt=ja(),iy=ja(),te=ja(),He=ja(),Sl=ja(),Mt=ja();function ja(){return 2**++PS}const ho=Object.freeze(Object.defineProperty({__proto__:null,boolean:xe,booleanish:tt,commaOrSpaceSeparated:Mt,commaSeparated:Sl,number:te,overloadedBoolean:iy,spaceSeparated:He},Symbol.toStringTag,{value:"Module"})),eo=Object.keys(ho);class gf extends Qt{constructor(i,r,s,o){let d=-1;if(super(i,r),rp(this,"space",o),typeof s=="number")for(;++d<eo.length;){const h=eo[d];rp(this,eo[d],(s&ho[h])===ho[h])}}}gf.prototype.defined=!0;function rp(l,i,r){r&&(l[i]=r)}const eE={}.hasOwnProperty;function jl(l){const i={},r={};let s;for(s in l.properties)if(eE.call(l.properties,s)){const o=l.properties[s],d=new gf(s,l.transform(l.attributes||{},s),o,l.space);l.mustUseProperty&&l.mustUseProperty.includes(s)&&(d.mustUseProperty=!0),i[s]=d,r[Or(s)]=s,r[Or(d.attribute)]=s}return new zr(i,r,l.space)}const sy=jl({space:"xlink",transform(l,i){return"xlink:"+i.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),uy=jl({space:"xml",transform(l,i){return"xml:"+i.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function cy(l,i){return i in l?l[i]:i}function oy(l,i){return cy(l,i.toLowerCase())}const fy=jl({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:oy,properties:{xmlns:null,xmlnsXLink:null}}),dy=jl({transform(l,i){return i==="role"?i:"aria-"+i.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:tt,ariaAutoComplete:null,ariaBusy:tt,ariaChecked:tt,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:He,ariaCurrent:null,ariaDescribedBy:He,ariaDetails:null,ariaDisabled:tt,ariaDropEffect:He,ariaErrorMessage:null,ariaExpanded:tt,ariaFlowTo:He,ariaGrabbed:tt,ariaHasPopup:null,ariaHidden:tt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:He,ariaLevel:te,ariaLive:null,ariaModal:tt,ariaMultiLine:tt,ariaMultiSelectable:tt,ariaOrientation:null,ariaOwns:He,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:tt,ariaReadOnly:tt,ariaRelevant:null,ariaRequired:tt,ariaRoleDescription:He,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:tt,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null}}),tE=jl({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:oy,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Sl,acceptCharset:He,accessKey:He,action:null,allow:null,allowFullScreen:xe,allowPaymentRequest:xe,allowUserMedia:xe,alt:null,as:null,async:xe,autoCapitalize:null,autoComplete:He,autoFocus:xe,autoPlay:xe,blocking:He,capture:null,charSet:null,checked:xe,cite:null,className:He,cols:te,colSpan:null,content:null,contentEditable:tt,controls:xe,controlsList:He,coords:te|Sl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xe,defer:xe,dir:null,dirName:null,disabled:xe,download:iy,draggable:tt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xe,formTarget:null,headers:He,height:te,hidden:xe,high:te,href:null,hrefLang:null,htmlFor:He,httpEquiv:He,id:null,imageSizes:null,imageSrcSet:null,inert:xe,inputMode:null,integrity:null,is:null,isMap:xe,itemId:null,itemProp:He,itemRef:He,itemScope:xe,itemType:He,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xe,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:xe,muted:xe,name:null,nonce:null,noModule:xe,noValidate:xe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:xe,optimum:te,pattern:null,ping:He,placeholder:null,playsInline:xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xe,referrerPolicy:null,rel:He,required:xe,reversed:xe,rows:te,rowSpan:te,sandbox:He,scope:null,scoped:xe,seamless:xe,selected:xe,shadowRootClonable:xe,shadowRootDelegatesFocus:xe,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:tt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:xe,useMap:null,value:tt,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:He,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xe,declare:xe,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:xe,noHref:xe,noShade:xe,noWrap:xe,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:tt,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:xe,disableRemotePlayback:xe,prefix:null,property:null,results:te,security:null,unselectable:null}}),nE=jl({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:cy,properties:{about:Mt,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:He,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Sl,g2:Sl,glyphName:Sl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:Mt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:te,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:He,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Mt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Mt,rev:Mt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Mt,requiredFeatures:Mt,requiredFonts:Mt,requiredFormats:Mt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:Mt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Mt,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Mt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),aE=/^data[-\w.:]+$/i,ip=/-[a-z]/g,lE=/[A-Z]/g;function rE(l,i){const r=Or(i);let s=i,o=Qt;if(r in l.normal)return l.property[l.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&aE.test(i)){if(i.charAt(4)==="-"){const d=i.slice(5).replace(ip,sE);s="data"+d.charAt(0).toUpperCase()+d.slice(1)}else{const d=i.slice(4);if(!ip.test(d)){let h=d.replace(lE,iE);h.charAt(0)!=="-"&&(h="-"+h),i="data"+h}}o=gf}return new o(s,i)}function iE(l){return"-"+l.toLowerCase()}function sE(l){return l.charAt(1).toUpperCase()}const uE=ry([uy,sy,fy,dy,tE],"html");ry([uy,sy,fy,dy,nE],"svg");const sp=/[#.]/g;function cE(l,i){const r=l||"",s={};let o=0,d,h;for(;o<r.length;){sp.lastIndex=o;const p=sp.exec(r),g=r.slice(o,p?p.index:r.length);g&&(d?d==="#"?s.id=g:Array.isArray(s.className)?s.className.push(g):s.className=[g]:h=g,o+=g.length),p&&(d=p[0],o++)}return{type:"element",tagName:h||i||"div",properties:s,children:[]}}function up(l){const i=String(l||"").trim();return i?i.split(/[ \t\n\r\f]+/g):[]}function cp(l){const i=[],r=String(l||"");let s=r.indexOf(","),o=0,d=!1;for(;!d;){s===-1&&(s=r.length,d=!0);const h=r.slice(o,s).trim();(h||!d)&&i.push(h),o=s+1,s=r.indexOf(",",o)}return i}const oE=new Set(["menu","submit","reset","button"]),hy={}.hasOwnProperty;function fE(l,i,r){return(function(o,d,...h){let p=-1,g;if(o==null)g={type:"root",children:[]},h.unshift(d);else if(g=cE(o,i),g.tagName=g.tagName.toLowerCase(),dE(d,g.tagName)){let m;for(m in d)hy.call(d,m)&&hE(l,g.properties,m,d[m])}else h.unshift(d);for(;++p<h.length;)go(g.children,h[p]);return g.type==="element"&&g.tagName==="template"&&(g.content={type:"root",children:g.children},g.children=[]),g})}function dE(l,i){return l==null||typeof l!="object"||Array.isArray(l)?!1:i==="input"||!l.type||typeof l.type!="string"?!0:"children"in l&&Array.isArray(l.children)?!1:i==="button"?oE.has(l.type.toLowerCase()):!("value"in l)}function hE(l,i,r,s){const o=rE(l,r);let d=-1,h;if(s!=null){if(typeof s=="number"){if(Number.isNaN(s))return;h=s}else typeof s=="boolean"?h=s:typeof s=="string"?o.spaceSeparated?h=up(s):o.commaSeparated?h=cp(s):o.commaOrSpaceSeparated?h=up(cp(s).join(" ")):h=op(o,o.property,s):Array.isArray(s)?h=s.concat():h=o.property==="style"?gE(s):String(s);if(Array.isArray(h)){const p=[];for(;++d<h.length;)p[d]=op(o,o.property,h[d]);h=p}o.property==="className"&&Array.isArray(i.className)&&(h=i.className.concat(h)),i[o.property]=h}}function go(l,i){let r=-1;if(i!=null)if(typeof i=="string"||typeof i=="number")l.push({type:"text",value:String(i)});else if(Array.isArray(i))for(;++r<i.length;)go(l,i[r]);else if(typeof i=="object"&&"type"in i)i.type==="root"?go(l,i.children):l.push(i);else throw new Error("Expected node, nodes, or string, got `"+i+"`")}function op(l,i,r){if(typeof r=="string"){if(l.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((l.boolean||l.overloadedBoolean)&&(r===""||Or(r)===Or(i)))return!0}return r}function gE(l){const i=[];let r;for(r in l)hy.call(l,r)&&i.push([r,l[r]].join(": "));return i.join("; ")}const mE=fE(uE,"div"),pE=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],fp={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function gy(l){const i=typeof l=="string"?l.charCodeAt(0):l;return i>=48&&i<=57}function yE(l){const i=typeof l=="string"?l.charCodeAt(0):l;return i>=97&&i<=102||i>=65&&i<=70||i>=48&&i<=57}function bE(l){const i=typeof l=="string"?l.charCodeAt(0):l;return i>=97&&i<=122||i>=65&&i<=90}function dp(l){return bE(l)||gy(l)}const hp=document.createElement("i");function gp(l){const i="&"+l+";";hp.innerHTML=i;const r=hp.textContent;return r.charCodeAt(r.length-1)===59&&l!=="semi"||r===i?!1:r}const vE=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function xE(l,i){const r={},s=typeof r.additional=="string"?r.additional.charCodeAt(0):r.additional,o=[];let d=0,h=-1,p="",g,m;r.position&&("start"in r.position||"indent"in r.position?(m=r.position.indent,g=r.position.start):g=r.position);let v=(g?g.line:0)||1,x=(g?g.column:0)||1,S=A(),E;for(d--;++d<=l.length;)if(E===10&&(x=(m?m[h]:0)||1),E=l.charCodeAt(d),E===38){const U=l.charCodeAt(d+1);if(U===9||U===10||U===12||U===32||U===38||U===60||Number.isNaN(U)||s&&U===s){p+=String.fromCharCode(E),x++;continue}const I=d+1;let O=I,$=I,Y;if(U===35){$=++O;const ne=l.charCodeAt($);ne===88||ne===120?(Y="hexadecimal",$=++O):Y="decimal"}else Y="named";let F="",H="",R="";const K=Y==="named"?dp:Y==="decimal"?gy:yE;for($--;++$<=l.length;){const ne=l.charCodeAt($);if(!K(ne))break;R+=String.fromCharCode(ne),Y==="named"&&pE.includes(R)&&(F=R,H=gp(R))}let ie=l.charCodeAt($)===59;if(ie){$++;const ne=Y==="named"?gp(R):!1;ne&&(F=R,H=ne)}let re=1+$-I,fe="";if(!(!ie&&r.nonTerminated===!1))if(!R)Y!=="named"&&C(4,re);else if(Y==="named"){if(ie&&!H)C(5,1);else if(F!==R&&($=O+F.length,re=1+$-O,ie=!1),!ie){const ne=F?1:3;if(r.attribute){const ee=l.charCodeAt($);ee===61?(C(ne,re),H=""):dp(ee)?H="":C(ne,re)}else C(ne,re)}fe=H}else{ie||C(2,re);let ne=Number.parseInt(R,Y==="hexadecimal"?16:10);if(SE(ne))C(7,re),fe="�";else if(ne in fp)C(6,re),fe=fp[ne];else{let ee="";EE(ne)&&C(6,re),ne>65535&&(ne-=65536,ee+=String.fromCharCode(ne>>>10|55296),ne=56320|ne&1023),fe=ee+String.fromCharCode(ne)}}if(fe){_(),S=A(),d=$-1,x+=$-I+1,o.push(fe);const ne=A();ne.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,fe,{start:S,end:ne},l.slice(I-1,$)),S=ne}else R=l.slice(I-1,$),p+=R,x+=R.length,d=$-1}else E===10&&(v++,h++,x=0),Number.isNaN(E)?_():(p+=String.fromCharCode(E),x++);return o.join("");function A(){return{line:v,column:x,offset:d+((g?g.offset:0)||0)}}function C(U,I){let O;r.warning&&(O=A(),O.column+=I,O.offset+=I,r.warning.call(r.warningContext||void 0,vE[U],O,U))}function _(){p&&(o.push(p),r.text&&r.text.call(r.textContext||void 0,p,{start:S,end:A()}),p="")}}function SE(l){return l>=55296&&l<=57343||l>1114111}function EE(l){return l>=1&&l<=8||l===11||l>=13&&l<=31||l>=127&&l<=159||l>=64976&&l<=65007||(l&65535)===65535||(l&65535)===65534}var NE=0,is={},rt={util:{type:function(l){return Object.prototype.toString.call(l).slice(8,-1)},objId:function(l){return l.__id||Object.defineProperty(l,"__id",{value:++NE}),l.__id},clone:function l(i,r){r=r||{};var s,o;switch(rt.util.type(i)){case"Object":if(o=rt.util.objId(i),r[o])return r[o];s={},r[o]=s;for(var d in i)i.hasOwnProperty(d)&&(s[d]=l(i[d],r));return s;case"Array":return o=rt.util.objId(i),r[o]?r[o]:(s=[],r[o]=s,i.forEach(function(h,p){s[p]=l(h,r)}),s);default:return i}}},languages:{plain:is,plaintext:is,text:is,txt:is,extend:function(l,i){var r=rt.util.clone(rt.languages[l]);for(var s in i)r[s]=i[s];return r},insertBefore:function(l,i,r,s){s=s||rt.languages;var o=s[l],d={};for(var h in o)if(o.hasOwnProperty(h)){if(h==i)for(var p in r)r.hasOwnProperty(p)&&(d[p]=r[p]);r.hasOwnProperty(h)||(d[h]=o[h])}var g=s[l];return s[l]=d,rt.languages.DFS(rt.languages,function(m,v){v===g&&m!=l&&(this[m]=d)}),d},DFS:function l(i,r,s,o){o=o||{};var d=rt.util.objId;for(var h in i)if(i.hasOwnProperty(h)){r.call(i,h,i[h],s||h);var p=i[h],g=rt.util.type(p);g==="Object"&&!o[d(p)]?(o[d(p)]=!0,l(p,r,null,o)):g==="Array"&&!o[d(p)]&&(o[d(p)]=!0,l(p,r,h,o))}}},plugins:{},highlight:function(l,i,r){var s={code:l,grammar:i,language:r};if(rt.hooks.run("before-tokenize",s),!s.grammar)throw new Error('The language "'+s.language+'" has no grammar.');return s.tokens=rt.tokenize(s.code,s.grammar),rt.hooks.run("after-tokenize",s),Tr.stringify(rt.util.encode(s.tokens),s.language)},tokenize:function(l,i){var r=i.rest;if(r){for(var s in r)i[s]=r[s];delete i.rest}var o=new wE;return cs(o,o.head,l),my(l,o,i,o.head,0),TE(o)},hooks:{all:{},add:function(l,i){var r=rt.hooks.all;r[l]=r[l]||[],r[l].push(i)},run:function(l,i){var r=rt.hooks.all[l];if(!(!r||!r.length))for(var s=0,o;o=r[s++];)o(i)}},Token:Tr};function Tr(l,i,r,s){this.type=l,this.content=i,this.alias=r,this.length=(s||"").length|0}function mp(l,i,r,s){l.lastIndex=i;var o=l.exec(r);if(o&&s&&o[1]){var d=o[1].length;o.index+=d,o[0]=o[0].slice(d)}return o}function my(l,i,r,s,o,d){for(var h in r)if(!(!r.hasOwnProperty(h)||!r[h])){var p=r[h];p=Array.isArray(p)?p:[p];for(var g=0;g<p.length;++g){if(d&&d.cause==h+","+g)return;var m=p[g],v=m.inside,x=!!m.lookbehind,S=!!m.greedy,E=m.alias;if(S&&!m.pattern.global){var A=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,A+"g")}for(var C=m.pattern||m,_=s.next,U=o;_!==i.tail&&!(d&&U>=d.reach);U+=_.value.length,_=_.next){var I=_.value;if(i.length>l.length)return;if(!(I instanceof Tr)){var O=1,$;if(S){if($=mp(C,U,l,x),!$||$.index>=l.length)break;var R=$.index,Y=$.index+$[0].length,F=U;for(F+=_.value.length;R>=F;)_=_.next,F+=_.value.length;if(F-=_.value.length,U=F,_.value instanceof Tr)continue;for(var H=_;H!==i.tail&&(F<Y||typeof H.value=="string");H=H.next)O++,F+=H.value.length;O--,I=l.slice(U,F),$.index-=U}else if($=mp(C,0,I,x),!$)continue;var R=$.index,K=$[0],ie=I.slice(0,R),re=I.slice(R+K.length),fe=U+I.length;d&&fe>d.reach&&(d.reach=fe);var ne=_.prev;ie&&(ne=cs(i,ne,ie),U+=ie.length),AE(i,ne,O);var ee=new Tr(h,v?rt.tokenize(K,v):K,E,K);if(_=cs(i,ne,ee),re&&cs(i,_,re),O>1){var W={cause:h+","+g,reach:fe};my(l,i,r,_.prev,U,W),d&&W.reach>d.reach&&(d.reach=W.reach)}}}}}}function wE(){var l={value:null,prev:null,next:null},i={value:null,prev:l,next:null};l.next=i,this.head=l,this.tail=i,this.length=0}function cs(l,i,r){var s=i.next,o={value:r,prev:i,next:s};return i.next=o,s.prev=o,l.length++,o}function AE(l,i,r){for(var s=i.next,o=0;o<r&&s!==l.tail;o++)s=s.next;i.next=s,s.prev=i,l.length-=o}function TE(l){for(var i=[],r=l.head.next;r!==l.tail;)i.push(r.value),r=r.next;return i}const py=rt,Ol={}.hasOwnProperty;function yy(){}yy.prototype=py;const ge=new yy;ge.highlight=CE;ge.register=_E;ge.alias=jE;ge.registered=OE;ge.listLanguages=kE;ge.util.encode=RE;ge.Token.stringify=mo;function CE(l,i){if(typeof l!="string")throw new TypeError("Expected `string` for `value`, got `"+l+"`");let r,s;if(i&&typeof i=="object")r=i;else{if(s=i,typeof s!="string")throw new TypeError("Expected `string` for `name`, got `"+s+"`");if(Ol.call(ge.languages,s))r=ge.languages[s];else throw new Error("Unknown language: `"+s+"` is not registered")}return{type:"root",children:py.highlight.call(ge,l,r,s)}}function _E(l){if(typeof l!="function"||!l.displayName)throw new Error("Expected `function` for `syntax`, got `"+l+"`");Ol.call(ge.languages,l.displayName)||l(ge)}function jE(l,i){const r=ge.languages;let s={};typeof l=="string"?i&&(s[l]=i):s=l;let o;for(o in s)if(Ol.call(s,o)){const d=s[o],h=typeof d=="string"?[d]:d;let p=-1;for(;++p<h.length;)r[h[p]]=r[o]}}function OE(l){if(typeof l!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+l+"`");return Ol.call(ge.languages,l)}function kE(){const l=ge.languages,i=[];let r;for(r in l)Ol.call(l,r)&&typeof l[r]=="object"&&i.push(r);return i}function mo(l,i){if(typeof l=="string")return{type:"text",value:l};if(Array.isArray(l)){const s=[];let o=-1;for(;++o<l.length;)l[o]!==null&&l[o]!==void 0&&l[o]!==""&&s.push(mo(l[o],i));return s}const r={attributes:{},classes:["token",l.type],content:mo(l.content,i),language:i,tag:"span",type:l.type};return l.alias&&r.classes.push(...typeof l.alias=="string"?[l.alias]:l.alias),ge.hooks.run("wrap",r),mE(r.tag+"."+r.classes.join("."),ME(r.attributes),r.content)}function RE(l){return l}function ME(l){let i;for(i in l)Ol.call(l,i)&&(l[i]=xE(l[i]));return l}ge.register(sn);ge.register(Mr);ge.register(ws);ge.register(Ho);ge.register(Go);ge.register(Yo);ge.register(Dr);ge.register(_l);ge.register(qo);ge.register(Io);ge.register(Xo);ge.register(Fo);ge.register($o);ge.register(As);ge.register(Zo);ge.register(Vo);ge.register(Ko);ge.register(Qo);ge.register(Jo);ge.register(Wo);ge.register(Po);ge.register(ef);ge.register(tf);ge.register(Ts);ge.register(nf);ge.register(af);ge.register(lf);ge.register(rf);ge.register(sf);ge.register(uf);ge.register(cf);ge.register(of);ge.register(ff);ge.register(df);ge.register(Cs);ge.register(hf);const pp={highlight(l,i){return ge.highlight(l,i).children},registered(l){return ge.registered(l)}};function DE(l,i){const r={old:[],new:[]};for(const s of l){const o=qS([s],i);yp(o.old,r.old,s.oldStart,s.oldLines),yp(o.new,r.new,s.newStart,s.newLines)}return r}function yp(l,i,r,s){for(let o=r;o<r+s;o++)i[o-1]=l[o-1]??[]}function zE(){const{theme:l,toggleTheme:i}=Fe();return f.jsx("button",{onClick:i,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:`Switch to ${l==="dark"?"light":"dark"} mode`,children:l==="dark"?f.jsx(Rv,{className:"w-4 h-4"}):f.jsx(Tv,{className:"w-4 h-4"})})}function LE(l){return{typescript:"typescript",ts:"typescript",tsx:"tsx",javascript:"javascript",js:"javascript",jsx:"jsx",json:"json",css:"css",html:"markup",xml:"markup",markdown:"markdown",md:"markdown",python:"python",py:"python",rust:"rust",rs:"rust",go:"go",java:"java",c:"c",cpp:"cpp","c++":"cpp",csharp:"csharp","c#":"csharp",ruby:"ruby",rb:"ruby",php:"php",shell:"bash",bash:"bash",sh:"bash",yaml:"yaml",yml:"yaml",toml:"toml",sql:"sql",graphql:"graphql",scss:"scss",sass:"sass",less:"less",swift:"swift",kotlin:"kotlin",scala:"scala",lua:"lua",r:"r",perl:"perl",diff:"diff"}[l.toLowerCase()]??null}function po(l){return Ta(l)||Vt(l)?l.lineNumber:wa(l)?l.newLineNumber:0}function UE(l){return Vt(l)?"old":"new"}function BE(l,i){const r={};for(const s of l)for(const o of s.changes){const d=po(o),h=`${i}:${d}`;r[h]||(r[h]=Lt(o))}return r}function HE(l,i,r=0){const s=/^diff --git /gm,o=[];let d;for(;(d=s.exec(l))!==null;)o.push(d.index);let h=0;for(let p=0;p<o.length;p++){const g=o[p],m=p+1<o.length?o[p+1]:l.length,v=l.slice(g,m);if(v.includes(`a/${i}`)||v.includes(`b/${i}`)){if(h===r)return v;h++}}return null}function GE(){const{diffSet:l,rawDiff:i,selectedFile:r,viewMode:s,setViewMode:o,comments:d,activeCommentKey:h,addComment:p,updateComment:g,deleteComment:m,setActiveCommentKey:v,toggleHotkeyGuide:x,toggleWorkflowTips:S,focusedHunkIndex:E,setHunkCount:A,annotations:C,dismissAnnotation:_,metadata:U,reviewId:I}=Fe(),O=!!(U!=null&&U.githubPr),{isAvailable:$,startThread:Y,replyToThread:F}=wo(),H=$&&!!I,R=Fe(Q=>{var ae;return(ae=Q.sessions.find(de=>de.id===Q.reviewId))==null?void 0:ae.agentReadAt}),K=D.useMemo(()=>!l||!r?null:l.files.find(Q=>Dt(Q)===r)??null,[l,r]),ie=D.useMemo(()=>{if(!i||!r||!l)return null;const Q=gl(r);let ae=0;for(const de of l.files){if(Dt(de)===r)break;de.path===Q&&ae++}return HE(i,Q,ae)},[i,r,l]),re=D.useMemo(()=>{if(!ie)return[];try{return s1(ie)}catch{return[]}},[ie]),fe=D.useMemo(()=>{if(re.length===0||!K)return;const Q=LE(K.language);if(Q){try{if(!pp.registered(Q))return}catch{return}try{const ae={refractor:pp,highlight:!0,language:Q};return DE(re[0].hunks,ae)}catch{return}}},[re,K,s]),ne=D.useMemo(()=>re.length===0||!r?{}:BE(re[0].hunks,r),[re,r]),ee=D.useMemo(()=>{if(re.length===0)return{};const Q={};for(const ae of re[0].hunks)for(const de of ae.changes)Q[Lt(de)]=po(de);return Q},[re]),W=D.useMemo(()=>{const Q={};if(re.length===0)return Q;for(const ae of re[0].hunks)for(const de of ae.changes)Q[Lt(de)]=UE(de);return Q},[re]),k=D.useMemo(()=>r?d.map((Q,ae)=>({comment:Q,index:ae})).filter(Q=>Q.comment.file===r):[],[d,r]),L=D.useMemo(()=>{if(!r)return[];const Q=gl(r);return C.filter(ae=>ae.file===Q&&!ae.dismissed)},[C,r]),le=D.useMemo(()=>{const Q=new Map;for(const ae of L)Q.has(ae.line)||Q.set(ae.line,[]),Q.get(ae.line).push(ae);return Q},[L]),ue=D.useMemo(()=>O&&!H?{}:{onClick({change:Q}){if(!Q)return;const ae=Lt(Q);v(h===ae?null:ae)}},[h,v,O,H]),ce=D.useCallback(({change:Q,inHoverState:ae,renderDefault:de})=>{const Ue=po(Q),me=!O&&r&&k.some(Xe=>Xe.comment.line===Ue),Ce=le.has(Ue);return ae&&(!O||H)?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"diff-gutter-add-comment",children:"+"}),de()]}):me?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"diff-comment-indicator"}),de()]}):Ce?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"diff-annotation-indicator"}),de()]}):de()},[r,k,le,O,H]),N=D.useMemo(()=>{if(!r)return{};const Q={},ae=new Map;if(!O)for(const me of k){const Ce=me.comment.line;ae.has(Ce)||ae.set(Ce,[]),ae.get(Ce).push(me)}const de=(me,Ce)=>!O&&H?Xe=>Y(I,{file:gl(r),line:me,side:W[Ce],body:Xe}):void 0,Ue=new Set([...ae.keys(),...le.keys()]);for(const me of Ue){const Ce=ne[`${r}:${me}`];if(!Ce)continue;const Xe=ae.get(me),Ut=le.get(me);Q[Ce]=f.jsxs(f.Fragment,{children:[Ut&&Ut.length>0&&f.jsx(JS,{annotations:Ut,onDismiss:_,onReply:H?(ht,$e)=>F(I,ht,$e):void 0,sessionId:I??void 0,agentReadAt:R}),O&&H&&h===Ce&&f.jsx("div",{className:"border-t border-border bg-surface",children:f.jsx(fo,{placeholder:"Start another conversation on this line…",submitLabel:"Comment",onSubmit:async ht=>{const $e=await Y(I,{file:gl(r),line:me,side:W[Ce],body:ht});return $e.ok&&v(null),$e},onCancel:()=>v(null)})}),!O&&Xe&&Xe.length>0&&f.jsx(FS,{comments:Xe,isFormOpen:h===Ce,file:r,line:me,onAdd:(ht,$e)=>{p({file:r,line:me,body:ht,type:$e})},onAsk:de(me,Ce),onUpdate:(ht,$e,aa)=>{g(ht,{file:r,line:me,body:$e,type:aa})},onDelete:m,onOpenForm:()=>v(Ce),onCloseForm:()=>v(null)}),!O&&!(Xe!=null&&Xe.length)&&h===Ce&&f.jsx("div",{className:"border-t border-border bg-surface",children:f.jsx(ds,{file:r,line:me,onSave:(ht,$e)=>{p({file:r,line:me,body:ht,type:$e}),v(null)},onAsk:de(me,Ce),onCancel:()=>v(null)})})]})}if(O&&H&&h&&!Q[h]){const me=ee[h];me!==void 0&&(Q[h]=f.jsx("div",{className:"border-t border-border bg-surface",children:f.jsx(fo,{placeholder:"Ask the agent about this line…",submitLabel:"Comment",onSubmit:async Ce=>{const Xe=await Y(I,{file:gl(r),line:me,side:W[h],body:Ce});return Xe.ok&&v(null),Xe},onCancel:()=>v(null)})}))}if(!O&&h&&!Q[h]){const me=ee[h];me!==void 0&&(Q[h]=f.jsx("div",{className:"border-t border-border bg-surface",children:f.jsx(ds,{file:r,line:me,onSave:(Ce,Xe)=>{p({file:r,line:me,body:Ce,type:Xe}),v(null)},onAsk:de(me,h),onCancel:()=>v(null)})}))}return Q},[r,k,L,le,h,ne,ee,W,p,g,m,_,v,O,H,I,R,Y,F]);WS(N);const q=D.useRef(null);if(D.useEffect(()=>{var Q;A(((Q=re[0])==null?void 0:Q.hunks.length)??0)},[re,A]),D.useEffect(()=>{const Q=q.current;if(!Q||E===null)return;const ae=Q.querySelectorAll("tbody.diff-hunk");ae.forEach(de=>de.classList.remove("diff-hunk-focused")),ae[E]&&(ae[E].scrollIntoView({behavior:"smooth",block:"center"}),ae[E].classList.add("diff-hunk-focused"))},[E]),D.useEffect(()=>{function Q(){if(E===null||re.length===0||!r)return;const ae=re[0].hunks[E];if(!ae||ae.changes.length===0)return;const de=ae.changes[0],Ue=Lt(de);v(Ue)}return document.addEventListener("diffprism:open-comment",Q),()=>document.removeEventListener("diffprism:open-comment",Q)},[E,re,r,v]),!r||!l)return f.jsx("div",{className:"flex-1 flex items-center justify-center bg-background",children:f.jsxs("div",{className:"text-center",children:[f.jsx(Tl,{className:"w-12 h-12 text-text-secondary/40 mx-auto mb-3"}),f.jsx("p",{className:"text-text-secondary text-sm",children:"Select a file to view changes"})]})});const P=gl(r);if(K!=null&&K.binary)return f.jsxs("div",{className:"flex-1 flex flex-col bg-background",children:[f.jsx(to,{path:P,stage:K==null?void 0:K.stage}),f.jsx("div",{className:"flex-1 flex items-center justify-center",children:f.jsx("div",{className:"text-center",children:f.jsx("p",{className:"text-text-secondary text-sm",children:"Binary file — cannot display diff"})})})]});if(re.length===0)return f.jsxs("div",{className:"flex-1 flex flex-col bg-background",children:[f.jsx(to,{path:P,stage:K==null?void 0:K.stage}),f.jsx("div",{className:"flex-1 flex items-center justify-center",children:f.jsx("div",{className:"text-center",children:f.jsx("p",{className:"text-text-secondary text-sm",children:"No diff content available for this file"})})})]});const J=re[0];return f.jsxs("div",{className:"flex-1 flex flex-col bg-background min-h-0",children:[f.jsx(to,{path:P,stage:K==null?void 0:K.stage,additions:K==null?void 0:K.additions,deletions:K==null?void 0:K.deletions,viewMode:s,onViewModeChange:o,onToggleHotkeyGuide:x,onToggleWorkflowTips:S}),f.jsx("div",{ref:q,className:"flex-1 overflow-auto",children:f.jsx(vS,{viewType:s,diffType:J.type,hunks:J.hunks,tokens:fe,widgets:N,gutterEvents:ue,renderGutter:ce,children:Q=>Q.map(ae=>f.jsx(Jp,{hunk:ae},ae.content))})})]})}function to({path:l,stage:i,additions:r,deletions:s,viewMode:o,onViewModeChange:d,onToggleHotkeyGuide:h,onToggleWorkflowTips:p}){return f.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5 bg-surface border-b border-border flex-shrink-0",children:[f.jsx(Tl,{className:"w-4 h-4 text-text-secondary flex-shrink-0"}),f.jsx("span",{className:"text-text-primary text-sm font-mono truncate",children:l}),i&&f.jsx("span",{className:`text-[10px] font-semibold px-1.5 py-0.5 rounded border ${qv[i]}`,children:i==="staged"?"Staged":"Unstaged"}),f.jsxs("div",{className:"flex items-center gap-2 ml-auto flex-shrink-0",children:[r!==void 0&&r>0&&f.jsxs("span",{className:"text-success text-xs font-mono",children:["+",r]}),s!==void 0&&s>0&&f.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",s]}),o&&d&&f.jsxs("div",{className:"flex items-center rounded border border-border ml-2",children:[f.jsx("button",{onClick:()=>d("unified"),className:`p-1 ${o==="unified"?"bg-text-primary/10 text-text-primary":"text-text-secondary hover:text-text-primary"}`,title:"Unified view",children:f.jsx(Ov,{className:"w-3.5 h-3.5"})}),f.jsx("button",{onClick:()=>d("split"),className:`p-1 ${o==="split"?"bg-text-primary/10 text-text-primary":"text-text-secondary hover:text-text-primary"}`,title:"Split view",children:f.jsx(bv,{className:"w-3.5 h-3.5"})})]}),p&&f.jsx("button",{onClick:p,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:"Workflow tips",children:f.jsx(No,{className:"w-4 h-4"})}),h&&f.jsx("button",{onClick:h,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:"Keyboard shortcuts (?)",children:f.jsx(xo,{className:"w-4 h-4"})}),f.jsx(zE,{})]})]})}function YE({onSubmit:l,onDismiss:i,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}){const[d,h]=D.useState(""),[p,g]=D.useState(null),{diffSet:m,fileStatuses:v,comments:x,draftComment:S,saveDraftComment:E,setActiveCommentKey:A,setDraftComment:C}=Fe(),_=(m==null?void 0:m.files.reduce((R,K)=>R+K.additions,0))??0,U=(m==null?void 0:m.files.reduce((R,K)=>R+K.deletions,0))??0,I=(m==null?void 0:m.files.length)??0,O=!!(S&&S.body.trim());function $(R){const K=Object.values(v).some(ie=>ie!=="unreviewed");l({decision:R,comments:Fe.getState().comments,fileStatuses:K?v:void 0,summary:d.trim()||void 0})}function Y(R){if(O){g(R);return}$(R)}function F(){p&&(E(),$(p),g(null))}function H(){p&&(C(null),A(null),$(p),g(null))}return r&&s&&!o?f.jsx("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(El,{className:"w-4 h-4 text-success"}),f.jsx("span",{className:"text-sm text-success font-medium",children:"Review submitted"}),f.jsxs("span",{className:"relative flex h-2 w-2 ml-2",children:[f.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-success opacity-75"}),f.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-success"})]}),f.jsx("span",{className:"text-xs text-text-secondary",children:"Watching for changes..."})]})}):f.jsxs("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:[r&&s&&o&&f.jsxs("div",{className:"flex items-center gap-2 mb-3 text-xs text-accent",children:[f.jsxs("span",{className:"relative flex h-2 w-2",children:[f.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-info opacity-75"}),f.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-info"})]}),"New changes detected"]}),f.jsxs("div",{className:"flex items-center gap-4 mb-3",children:[f.jsxs("span",{className:"text-text-secondary text-xs",children:[I," file",I!==1?"s":""," changed"]}),_>0&&f.jsxs("span",{className:"text-success text-xs font-mono",children:["+",_]}),U>0&&f.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",U]}),x.length>0&&f.jsxs("span",{className:"flex items-center gap-1 text-accent text-xs",children:[f.jsx(Nl,{className:"w-3 h-3"}),x.length," comment",x.length!==1?"s":""]})]}),f.jsx("textarea",{value:d,onChange:R=>h(R.target.value),placeholder:"Leave a summary comment (optional)...",rows:3,className:"w-full bg-background border border-border rounded-lg px-3 py-2 text-text-primary text-sm placeholder:text-text-secondary/50 resize-none focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent mb-3"}),p&&f.jsxs("div",{className:"flex items-center gap-3 mb-3 px-3 py-2.5 rounded-lg bg-warning/10 border border-warning/30",children:[f.jsx(wl,{className:"w-4 h-4 text-warning flex-shrink-0"}),f.jsx("span",{className:"text-sm text-text-primary",children:"You have an unsaved comment. Save it before submitting?"}),f.jsx("div",{className:"flex-1"}),f.jsx("button",{onClick:F,className:"px-3 py-1.5 text-xs font-medium rounded bg-accent/20 text-accent border border-accent/30 hover:bg-accent/30 transition-colors cursor-pointer",children:"Save & Submit"}),f.jsx("button",{onClick:H,className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Discard & Submit"}),f.jsx("button",{onClick:()=>g(null),className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsxs("button",{onClick:()=>Y("approved"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ea.approve}`,children:[f.jsx(El,{className:"w-4 h-4"}),"Approve"]}),f.jsxs("button",{onClick:()=>Y("changes_requested"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ea.reject}`,children:[f.jsx(kr,{className:"w-4 h-4"}),"Request Changes"]}),f.jsxs("button",{onClick:()=>Y("approved_with_comments"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ea.comment}`,children:[f.jsx(Nl,{className:"w-4 h-4"}),"Approve with Comments"]}),i&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"w-px h-6 bg-border"}),f.jsxs("button",{onClick:i,className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ea.dismiss}`,children:[f.jsx(Ep,{className:"w-4 h-4"}),"Dismiss"]})]})]})]})}function qE({onDismiss:l}){const{annotations:i,reviewId:r,metadata:s}=Fe(),{submitPrReview:o}=wo(),[d,h]=D.useState(""),[p,g]=D.useState(new Set),[m,v]=D.useState(null),[x,S]=D.useState(null),[E,A]=D.useState(null),C=s==null?void 0:s.githubPr,_=i.filter(F=>F.author==="reviewer"&&!F.dismissed),U=!d.trim();async function I(F){if(!r)return;v(F),S(null);const H=await o(r,{event:F,summary:d.trim()||void 0,threadIds:_.filter(R=>p.has(R.id)).map(R=>R.id)});v(null),H.ok?A(H.url):S(H.error)}function O(F){g(H=>{const R=new Set(H);return R.has(F)?R.delete(F):R.add(F),R})}if(E)return f.jsxs("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0 flex items-center gap-3",children:[f.jsx(El,{className:"w-4 h-4 text-success"}),f.jsx("span",{className:"text-sm text-success font-medium",children:"Review posted to GitHub"}),f.jsxs("a",{href:E,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1 text-xs text-accent hover:underline",children:["View on GitHub",f.jsx(So,{className:"w-3 h-3"})]})]});const $=m!==null,Y=(F,H,R,K,ie)=>f.jsxs("button",{onClick:()=>I(F),disabled:$||ie,className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed ${R}`,children:[f.jsx(K,{className:"w-4 h-4"}),m===F?"Posting…":H]});return f.jsxs("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:[f.jsxs("div",{className:"text-xs text-text-secondary mb-2",children:["Submit your review to GitHub",C?` · ${C.owner}/${C.repo}#${C.number}`:""]}),f.jsx("textarea",{value:d,onChange:F=>h(F.target.value),placeholder:"Summary — optional to approve, required to request changes or comment",rows:3,className:"w-full bg-background border border-border rounded-lg px-3 py-2 text-text-primary text-sm placeholder:text-text-secondary/50 resize-none focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent mb-3"}),_.length>0&&f.jsxs("fieldset",{className:"mb-3",children:[f.jsx("legend",{className:"text-xs text-text-secondary mb-1",children:"Post your comments as inline review comments (your opening message only — agent replies stay here)"}),f.jsx("div",{className:"flex flex-col gap-1 max-h-28 overflow-y-auto",children:_.map(F=>f.jsxs("label",{className:"flex items-center gap-2 text-xs text-text-primary cursor-pointer select-none",children:[f.jsx("input",{type:"checkbox",checked:p.has(F.id),onChange:()=>O(F.id),className:"rounded border-border accent-accent"}),f.jsxs("span",{className:"font-mono text-text-secondary",children:[F.file,":",F.line]}),f.jsx("span",{className:"truncate",children:F.body})]},F.id))})]}),x&&f.jsxs("div",{role:"alert",className:"flex items-start gap-2 mb-3 px-3 py-2 rounded-lg bg-danger/10 border border-danger/30 text-sm text-text-primary whitespace-pre-line",children:[f.jsx(wl,{className:"w-4 h-4 mt-0.5 text-danger flex-shrink-0"}),x]}),f.jsxs("div",{className:"flex items-center gap-3",children:[Y("APPROVE","Approve",ea.approve,El,!1),Y("REQUEST_CHANGES","Request changes",ea.reject,kr,U),Y("COMMENT","Comment",ea.comment,Nl,U),l&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"w-px h-6 bg-border"}),f.jsxs("button",{onClick:l,disabled:$,className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer disabled:opacity-40 ${ea.dismiss}`,children:[f.jsx(Ep,{className:"w-4 h-4"}),"Close without posting"]})]})]})]})}const IE=navigator.platform.toUpperCase().includes("MAC"),XE=IE?"⌘":"Ctrl",FE=[{keys:["j","↓"],action:"Next file"},{keys:["k","↑"],action:"Previous file"},{keys:["s"],action:"Cycle file status"},{keys:["n"],action:"Next hunk"},{keys:["p"],action:"Previous hunk"},{keys:["c"],action:"Comment on hunk"},{keys:[`${XE} + Enter`],action:"Save comment"},{keys:["Esc"],action:"Cancel comment / Close guide"},{keys:["?"],action:"Toggle this guide"}];function $E(){const{showHotkeyGuide:l,toggleHotkeyGuide:i}=Fe();return D.useEffect(()=>{if(!l)return;function r(s){(s.key==="Escape"||s.key==="?")&&(s.preventDefault(),s.stopPropagation(),i())}return document.addEventListener("keydown",r,!0),()=>document.removeEventListener("keydown",r,!0)},[l,i]),l?f.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:i,children:f.jsxs("div",{className:"bg-surface border border-border rounded-lg shadow-xl p-6 max-w-sm w-full mx-4",onClick:r=>r.stopPropagation(),children:[f.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Keyboard Shortcuts"}),f.jsx("div",{className:"space-y-2",children:FE.map(r=>f.jsxs("div",{className:"flex items-center justify-between gap-4",children:[f.jsx("span",{className:"text-text-secondary text-sm",children:r.action}),f.jsx("div",{className:"flex items-center gap-1.5",children:r.keys.map((s,o)=>f.jsxs("span",{className:"flex items-center gap-1.5",children:[o>0&&f.jsx("span",{className:"text-text-secondary/50 text-xs",children:"/"}),f.jsx("kbd",{className:"px-1.5 py-0.5 text-xs font-mono rounded border border-border bg-background text-text-primary",children:s})]},s))})]},r.action))})]})}):null}const ZE={navigation:"Navigation",review:"Review Workflow",commenting:"Commenting",general:"General"},VE=["navigation","review","commenting","general"],KE=[{id:"nav-files",text:"Navigate between files in the sidebar",shortcut:"j / k",category:"navigation"},{id:"nav-hunks",text:"Jump between changed hunks within a file",shortcut:"n / p",category:"navigation"},{id:"nav-select",text:"Click any file in the sidebar to view its diff",category:"navigation"},{id:"review-status",text:"Cycle a file's review status (unreviewed → reviewed → approved → needs changes)",shortcut:"s",category:"review"},{id:"review-split",text:"Toggle between unified and split (side-by-side) diff views from the toolbar",category:"review"},{id:"review-briefing",text:"Check the briefing bar at the top for a summary of changes, risk indicators, and file stats",category:"review"},{id:"comment-gutter",text:"Click a line's gutter (the + icon on hover) to add an inline comment",category:"commenting"},{id:"comment-hunk",text:"Quickly comment on the focused hunk",shortcut:"c",category:"commenting"},{id:"comment-save",text:"Save a comment from the inline form",shortcut:"Cmd/Ctrl + Enter",category:"commenting"},{id:"general-hotkeys",text:"Open the full keyboard shortcuts reference anytime",shortcut:"?",category:"general"},{id:"general-theme",text:"Toggle between dark and light mode from the toolbar",category:"general"}],bp="diffprism-tips-seen";function QE(){const{showWorkflowTips:l,toggleWorkflowTips:i}=Fe();if(D.useEffect(()=>{localStorage.getItem(bp)||(localStorage.setItem(bp,"1"),i())},[]),D.useEffect(()=>{if(!l)return;function s(o){o.key==="Escape"&&(o.preventDefault(),o.stopPropagation(),i())}return document.addEventListener("keydown",s,!0),()=>document.removeEventListener("keydown",s,!0)},[l,i]),!l)return null;const r=new Map;for(const s of KE)r.has(s.category)||r.set(s.category,[]),r.get(s.category).push(s);return f.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:i,children:f.jsxs("div",{className:"bg-surface border border-border rounded-lg shadow-xl p-6 max-w-md w-full mx-4 max-h-[80vh] overflow-y-auto",onClick:s=>s.stopPropagation(),children:[f.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Workflow Tips"}),f.jsx("div",{className:"space-y-4",children:VE.map(s=>{const o=r.get(s);return!o||o.length===0?null:f.jsxs("div",{children:[f.jsx("h3",{className:"text-text-secondary text-xs font-semibold uppercase tracking-wider mb-2",children:ZE[s]}),f.jsx("div",{className:"space-y-1.5",children:o.map(d=>f.jsxs("div",{className:"flex items-start justify-between gap-3",children:[f.jsx("span",{className:"text-text-secondary text-sm leading-snug",children:d.text}),d.shortcut&&f.jsx("kbd",{className:"flex-shrink-0 px-1.5 py-0.5 text-xs font-mono rounded border border-border bg-background text-text-primary whitespace-nowrap",children:d.shortcut})]},d.id))})]},s)})}),f.jsxs("div",{className:"mt-5 flex items-center justify-between",children:[f.jsx("span",{className:"text-text-secondary/60 text-xs",children:"Reopen anytime from the toolbar"}),f.jsx("button",{onClick:i,className:"px-3 py-1.5 text-sm font-medium rounded bg-accent text-white hover:bg-accent/90 transition-colors cursor-pointer",children:"Got it"})]})]})})}const JE="Your comments",WE={finding:Aa,suggestion:No,question:xo,warning:wl};function PE({body:l}){const[i,r]=D.useState(!1),s=l.length>120||l.includes(`
|
|
350
|
+
`),o=D.useCallback(d=>{d.stopPropagation(),r(h=>!h)},[]);return s?i?f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-text-primary whitespace-pre-wrap",children:l}),f.jsx("button",{onClick:o,className:"text-[10px] text-accent hover:underline mt-0.5 cursor-pointer",children:"Show less"})]}):f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-text-primary truncate",children:l}),f.jsx("button",{onClick:o,className:"text-[10px] text-accent hover:underline mt-0.5 cursor-pointer",children:"Show more"})]}):f.jsx("p",{className:"text-xs text-text-primary",children:l})}function eN({annotations:l,onDismiss:i,onNavigate:r,agentReadAt:s}){const[o,d]=D.useState(!1),h=ay(l,s),p=D.useMemo(()=>{const v=o?l:l.filter(S=>!S.dismissed),x=new Map;for(const S of v){const E=(S.author??"agent")==="reviewer"?JE:S.source.agent;x.has(E)||x.set(E,[]),x.get(E).push(S)}return x},[l,o]),g=l.filter(v=>!v.dismissed).length,m=l.some(v=>(v.author??"agent")==="reviewer");return l.length===0?null:f.jsxs("div",{className:"border-t border-border flex-shrink-0 max-h-[40%] overflow-hidden flex flex-col",children:[f.jsxs("div",{className:"px-4 py-2 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[m?f.jsx(Nl,{className:"w-4 h-4 text-text-secondary"}):f.jsx(bo,{className:"w-4 h-4 text-text-secondary"}),f.jsxs("span",{className:"text-xs font-semibold text-text-secondary uppercase tracking-wide",children:[m?"Annotations & comments":"Agent Annotations"," (",g,")"]})]}),l.some(v=>v.dismissed)&&f.jsxs("button",{onClick:()=>d(!o),className:"flex items-center gap-1 text-xs text-text-secondary hover:text-text-primary cursor-pointer",children:[o?f.jsx(Sv,{className:"w-3 h-3"}):f.jsx(Eo,{className:"w-3 h-3"}),o?"Hide dismissed":"Show dismissed"]})]}),f.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:Array.from(p.entries()).map(([v,x])=>f.jsxs("div",{className:"border-t border-border/50",children:[f.jsxs("div",{className:"px-4 py-1.5 flex items-center gap-2",children:[f.jsx("span",{className:"text-xs font-medium text-accent",children:v}),f.jsxs("span",{className:"text-xs text-text-secondary",children:["(",x.length,")"]})]}),x.map(S=>{var C;const E=WE[S.type]??Aa,A=os[S.category]??os.other;return f.jsxs("div",{className:`px-4 py-2 flex items-start gap-2 hover:bg-text-primary/5 cursor-pointer group ${S.dismissed?"opacity-40":""}`,onClick:()=>r(S),children:[f.jsx(E,{className:`w-3.5 h-3.5 mt-0.5 flex-shrink-0 ${A}`}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[f.jsxs("span",{className:"text-xs text-text-secondary font-mono truncate",children:[S.file,":",S.line]}),(S.author??"agent")==="agent"&&f.jsx("span",{className:`text-[10px] font-semibold uppercase ${A}`,children:S.category})]}),f.jsx(PE,{body:S.body}),Uo(S)?h(S)==="unheard"?f.jsx("p",{className:"text-[10px] text-warning mt-0.5",children:"No agent listening"}):f.jsx("p",{className:"text-[10px] text-text-secondary italic mt-0.5",children:"Waiting for an agent"}):(((C=S.replies)==null?void 0:C.length)??0)>0?f.jsxs("p",{className:"text-[10px] text-text-secondary mt-0.5",children:[S.replies.length," ",S.replies.length===1?"reply":"replies"]}):null]}),!S.dismissed&&f.jsx("button",{onClick:_=>{_.stopPropagation(),i(S.id)},className:"p-0.5 rounded hover:bg-text-primary/10 text-text-secondary opacity-0 group-hover:opacity-100 cursor-pointer flex-shrink-0",title:"Dismiss",children:f.jsx(kr,{className:"w-3 h-3"})})]},S.id)})]},v))})]})}function by({onSubmit:l,onDismiss:i,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}){const{annotations:d,dismissAnnotation:h,selectFile:p,focusAnnotation:g,diffSet:m,metadata:v}=Fe(),x=Fe(A=>{var C;return(C=A.sessions.find(_=>_.id===A.reviewId))==null?void 0:C.agentReadAt}),S=!!(v!=null&&v.githubPr),E=A=>{if(!m)return;if(m.files.find(U=>Dt(U)===A)){p(A);return}const _=m.files.find(U=>U.path===A);_&&p(Dt(_))};return f.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[f.jsx(Fv,{}),f.jsx($v,{}),f.jsxs("div",{className:"flex flex-1 min-h-0",children:[f.jsxs("div",{className:"w-[280px] flex-shrink-0 flex flex-col overflow-hidden",children:[f.jsx("div",{className:"flex-1 min-h-0",children:f.jsx(t1,{onSubmit:l})}),f.jsx(eN,{annotations:d,onDismiss:h,agentReadAt:x,onNavigate:A=>{E(A.file),A.dismissed||g(A.id)}})]}),f.jsx(GE,{})]}),S?f.jsx(qE,{onDismiss:i}):f.jsx(YE,{onSubmit:l,onDismiss:i,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}),f.jsx($E,{}),f.jsx(QE,{})]})}function tN(l){const r=Date.now()-l,s=Math.floor(r/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const o=Math.floor(s/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function nN(l){if(l.startsWith("github:"))return l.slice(7);const i=l.split("/");return i[i.length-1]||l}const vp={pending:"Pending",in_review:"In Review",changes_requested:"Changes Req.",approved:"Approved",approved_with_comments:"Approved",dismissed:"Dismissed",submitted:"Submitted"};function aN(l){const{status:i,decision:r}=l,s=i==="submitted"?r??"submitted":i,o=Mm[s]??Mm.submitted,d=vp[s]??vp.submitted;return f.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded ${o}`,children:d})}function lN({sessions:l,activeSessionId:i,onSelect:r,onClose:s,onOpenProject:o,onReviewPr:d}){return f.jsxs("div",{className:"flex flex-col h-full bg-surface border-r border-border",children:[f.jsxs("div",{className:"px-3 py-3 border-b border-border flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"text-text-primary text-xs font-semibold uppercase tracking-wider",children:"Sessions"}),f.jsxs("span",{className:"text-text-secondary text-[10px]",children:[l.length," session",l.length!==1?"s":""]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[d&&f.jsx("button",{onClick:d,className:"p-1 rounded hover:bg-border/50 text-text-secondary hover:text-accent transition-colors",title:"Review GitHub PR",children:f.jsx(ta,{className:"w-3.5 h-3.5"})}),o&&f.jsx("button",{onClick:o,className:"p-1 rounded hover:bg-border/50 text-text-secondary hover:text-text-primary transition-colors",title:"Open project",children:f.jsx(Np,{className:"w-3.5 h-3.5"})})]})]}),f.jsx("div",{className:"flex-1 overflow-y-auto",children:l.length===0?f.jsx("div",{className:"flex flex-col items-center justify-center h-full px-4 text-center",children:f.jsx("p",{className:"text-text-secondary text-xs",children:"No sessions yet. Reviews will appear here automatically."})}):f.jsx("div",{className:"py-1",children:l.map(h=>{const p=h.id===i,g=h.source==="manual",m=h.projectPath.startsWith("github:");return f.jsxs("div",{className:`group relative px-3 py-2.5 cursor-pointer border-l-2 transition-colors ${p?"bg-accent/10 border-l-accent":h.needsAttention?"bg-warning/5 border-l-warning hover:bg-warning/10":"border-l-transparent hover:bg-border/20"}`,onClick:()=>r(h.id),role:"button",tabIndex:0,onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&r(h.id)},children:[f.jsx("button",{onClick:v=>{v.stopPropagation(),s(h.id)},className:"absolute top-1.5 right-1.5 p-0.5 rounded hover:bg-border/50 text-text-secondary hover:text-text-primary transition-colors opacity-0 group-hover:opacity-100",style:{opacity:p?1:void 0},title:"Dismiss session",children:f.jsx(kr,{className:"w-3 h-3"})}),f.jsxs("div",{className:"flex items-start justify-between gap-1.5 mb-1 pr-7",children:[f.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 flex-1",children:[h.needsAttention&&f.jsx(Aa,{className:"w-3.5 h-3.5 text-warning flex-shrink-0 animate-pulse"}),h.hasNewChanges&&f.jsx(_v,{className:"w-3 h-3 text-accent flex-shrink-0 animate-pulse","aria-label":"New changes",children:f.jsx("title",{children:"New changes since you last looked"})}),m?f.jsx(ta,{className:"w-3.5 h-3.5 text-accent flex-shrink-0"}):g?f.jsx(Na,{className:"w-3.5 h-3.5 text-text-secondary flex-shrink-0"}):null,f.jsx("span",{className:"text-text-primary text-xs font-medium truncate",children:h.title||nN(h.projectPath)})]}),f.jsx("div",{className:"flex-shrink-0",children:aN(h)})]}),h.reasoning&&f.jsx("p",{className:"text-text-secondary text-[11px] leading-tight mb-1 line-clamp-2",children:h.reasoning}),f.jsxs("div",{className:"flex items-center gap-2 text-[10px] text-text-secondary",children:[h.branch&&f.jsxs("span",{className:"flex items-center gap-0.5 truncate",children:[f.jsx(Tn,{className:"w-2.5 h-2.5"}),h.branch]}),f.jsxs("span",{className:"flex items-center gap-0.5 ml-auto flex-shrink-0",children:[f.jsx(yv,{className:"w-2.5 h-2.5"}),tN(h.createdAt)]})]}),f.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-[10px]",children:[f.jsxs("span",{className:"text-text-secondary",children:[h.fileCount," file",h.fileCount!==1?"s":""]}),h.additions>0&&f.jsxs("span",{className:"text-success font-mono",children:["+",h.additions]}),h.deletions>0&&f.jsxs("span",{className:"text-danger font-mono",children:["-",h.deletions]})]})]},h.id)})})})]})}function rN({permission:l,enabled:i,onToggle:r}){const s=l==="denied",o=l==="granted"&&i,d=s?"Notifications blocked by browser":o?"Notifications on":"Enable notifications";return f.jsx("button",{onClick:r,disabled:s,className:`p-1.5 rounded transition-colors cursor-pointer ${s?"text-text-secondary/50 cursor-not-allowed":o?"text-accent hover:text-accent/80":"text-text-secondary hover:text-text-primary"}`,title:d,children:o?f.jsx(hv,{className:"w-4 h-4"}):f.jsx(dv,{className:"w-4 h-4"})})}function iN(){const[l,i]=D.useState(null);return D.useEffect(()=>{const r=new URLSearchParams(window.location.search).get("httpPort");r&&fetch(`http://localhost:${r}/api/feedback?kind=feedback`).then(s=>s.ok?s.json():null).then(s=>{s!=null&&s.url&&i(s.url)}).catch(()=>{})},[]),l?f.jsxs("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-[11px] text-text-secondary hover:text-text-primary transition-colors",title:"Opens a prefilled GitHub issue. Nothing is sent until you submit it.",children:[f.jsx(Nl,{className:"w-3 h-3"}),"Send feedback"]}):null}function sN(){return new URLSearchParams(window.location.search).get("httpPort")}function uN({onSuccess:l}){const[i,r]=D.useState(""),[s,o]=D.useState(!1),[d,h]=D.useState(null),p=D.useCallback(async()=>{const m=sN();if(!(!m||!i.trim())){o(!0),h(null);try{const v=await fetch(`http://localhost:${m}/api/pr/open`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prUrl:i.trim()})}),x=await v.json();v.ok?(r(""),l==null||l()):h(x.error??"Failed to open PR")}catch{h("Could not connect to server")}finally{o(!1)}}},[i,l]),g=D.useCallback(m=>{m.key==="Enter"&&!m.shiftKey&&i.trim()&&(m.preventDefault(),p())},[p,i]);return f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"relative",children:[f.jsx("input",{type:"text",value:i,onChange:m=>{r(m.target.value),d&&h(null)},onKeyDown:g,placeholder:"https://github.com/owner/repo/pull/123",className:"w-full bg-background border border-border rounded-md px-3 py-2 pl-9 text-text-primary text-xs placeholder:text-text-secondary/50 focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 transition-colors",disabled:s,autoFocus:!0}),f.jsx(ta,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-text-secondary"})]}),f.jsx("button",{onClick:p,disabled:s||!i.trim(),className:"w-full bg-accent/15 text-accent text-xs font-medium rounded-md px-3 py-2 hover:bg-accent/25 disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center justify-center gap-1.5",children:s?f.jsxs(f.Fragment,{children:[f.jsx(no,{className:"w-3.5 h-3.5 animate-spin"}),"Fetching PR..."]}):f.jsxs(f.Fragment,{children:[f.jsx(So,{className:"w-3.5 h-3.5"}),"Review PR"]})}),d&&f.jsx("p",{className:"text-danger text-xs",children:d}),f.jsxs("p",{className:"text-text-secondary text-[10px]",children:["Also accepts ",f.jsx("code",{className:"text-accent/70",children:"owner/repo#123"})," format"]})]})}const cN=[{value:"working-copy",label:"Working Copy"},{value:"unstaged",label:"Unstaged"},{value:"staged",label:"Staged"}];function hs(){return new URLSearchParams(window.location.search).get("httpPort")}function oN(l){const[i,r]=D.useState(null),[s,o]=D.useState(!1),d=D.useCallback(async h=>{const p=hs();if(p){o(!0);try{const g=h?`?path=${encodeURIComponent(h)}`:"",m=await fetch(`http://localhost:${p}/api/fs/list${g}`);if(m.ok){const v=await m.json();r(v)}}catch{}finally{o(!1)}}},[]);return D.useEffect(()=>{d(l)},[d,l]),{listing:i,loadingDir:s,fetchDir:d}}function fN({onSuccess:l}){const[i,r]=D.useState(),[s,o]=D.useState(null),[d,h]=D.useState(!1),[p,g]=D.useState(null),{listing:m,loadingDir:v,fetchDir:x}=oN(i);D.useEffect(()=>{const E=hs();E&&fetch(`http://localhost:${E}/api/status`).then(A=>A.json()).then(A=>{const C=A;if(C.cwd&&r(C.cwd),C.defaultDiffRef){const _=C.defaultDiffRef;o(U=>U??_)}}).catch(()=>{})},[]);const S=D.useCallback(async E=>{const A=hs();if(A){h(!0),g(null);try{const C=await fetch(`http://localhost:${A}/api/projects/open`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s?{projectPath:E,diffRef:s}:{projectPath:E})}),_=await C.json();C.ok?l==null||l():g(_.error??"Failed to open project")}catch{g("Could not connect to server")}finally{h(!1)}}},[s,l]);return f.jsxs("div",{className:"space-y-3",children:[m&&f.jsxs("div",{className:"flex items-center gap-1 text-text-secondary text-[11px] font-mono truncate min-h-[20px]",children:[m.parentPath&&f.jsx("button",{onClick:()=>x(m.parentPath),className:"p-0.5 rounded hover:bg-border/50 hover:text-text-primary transition-colors flex-shrink-0",title:"Go up",children:f.jsx(vo,{className:"w-3 h-3"})}),f.jsx("span",{className:"truncate",children:m.path}),m.isGitRepo&&f.jsx(Tn,{className:"w-3 h-3 text-success flex-shrink-0 ml-1"})]}),(m==null?void 0:m.isGitRepo)&&f.jsxs("button",{onClick:()=>S(m.path),disabled:d,className:"w-full bg-accent/15 text-accent text-xs font-medium rounded px-3 py-2 hover:bg-accent/25 disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center justify-center gap-1.5",children:[f.jsx(Na,{className:"w-3.5 h-3.5"}),d?"Opening...":`Open ${m.path.split("/").pop()}`]}),f.jsx("div",{className:"border border-border rounded max-h-[280px] overflow-y-auto",children:v?f.jsx("div",{className:"px-3 py-4 text-text-secondary text-xs text-center",children:"Loading..."}):(m==null?void 0:m.dirs.length)===0?f.jsx("div",{className:"px-3 py-4 text-text-secondary text-xs text-center",children:"No subdirectories"}):m==null?void 0:m.dirs.map(E=>f.jsxs("button",{onClick:()=>{g(null),E.isGitRepo,x(E.path)},onDoubleClick:()=>{E.isGitRepo&&S(E.path)},className:"w-full flex items-center gap-2 px-3 py-1.5 text-left hover:bg-border/30 transition-colors group",children:[f.jsx(Av,{className:`w-3.5 h-3.5 flex-shrink-0 ${E.isGitRepo?"text-accent":"text-text-secondary"}`}),f.jsx("span",{className:"text-text-primary text-xs truncate flex-1",children:E.name}),E.isGitRepo&&f.jsx(Tn,{className:"w-3 h-3 text-success flex-shrink-0"})]},E.path))}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-text-secondary text-xs mb-1",children:"Diff scope"}),f.jsx("select",{value:s??"",disabled:s===null,onChange:E=>o(E.target.value),className:"w-full bg-background border border-border rounded px-3 py-1.5 text-text-primary text-xs focus:outline-none focus:border-accent",children:cN.map(E=>f.jsx("option",{value:E.value,children:E.label},E.value))})]}),p&&f.jsx("p",{className:"text-danger text-xs",children:p})]})}function dN({sessions:l,activeSessionId:i,hasDiffLoaded:r,onSelectSession:s,onCloseSession:o,onSubmit:d,onDismiss:h,notificationPermission:p,notificationsEnabled:g,onToggleNotifications:m}){const[v,x]=D.useState("none");return f.jsxs("div",{className:"h-screen flex bg-background",children:[f.jsxs("div",{className:"w-[260px] flex-shrink-0 flex flex-col",children:[f.jsx(lN,{sessions:l,activeSessionId:i,onSelect:s,onClose:o,onOpenProject:()=>x("open-project"),onReviewPr:()=>x("review-pr")}),f.jsxs("div",{className:"px-3 py-2 border-t border-border border-r border-r-border bg-surface space-y-1.5",children:[m&&p&&f.jsx(rN,{permission:p,enabled:g??!1,onToggle:m}),f.jsx(iN,{})]})]}),f.jsx("div",{className:"flex-1 min-w-0",children:r?f.jsx(by,{onSubmit:d,onDismiss:h,isWatchMode:!0,watchSubmitted:!1,hasUnreviewedChanges:!0}):v==="open-project"?f.jsx("div",{className:"flex flex-col items-center justify-center h-full px-8",children:f.jsxs("div",{className:"max-w-sm w-full",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[f.jsx(Na,{className:"w-5 h-5 text-accent"}),f.jsx("h2",{className:"text-text-primary text-lg font-semibold",children:"Open Project"})]}),f.jsx("div",{className:"bg-surface border border-border rounded-lg p-5",children:f.jsx(fN,{onSuccess:()=>x("none")})}),f.jsx("button",{onClick:()=>x("none"),className:"mt-3 text-text-secondary text-xs hover:text-text-primary transition-colors",children:"Cancel"})]})}):v==="review-pr"?f.jsx("div",{className:"flex flex-col items-center justify-center h-full px-8",children:f.jsxs("div",{className:"max-w-sm w-full",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[f.jsx(ta,{className:"w-5 h-5 text-accent"}),f.jsx("h2",{className:"text-text-primary text-lg font-semibold",children:"Review PR"})]}),f.jsx("div",{className:"bg-surface border border-border rounded-lg p-5",children:f.jsx(uN,{onSuccess:()=>x("none")})}),f.jsx("button",{onClick:()=>x("none"),className:"mt-3 text-text-secondary text-xs hover:text-text-primary transition-colors",children:"Cancel"})]})}):f.jsx(hN,{hasAnySessions:l.length>0,onOpenProject:()=>x("open-project"),onReviewPr:()=>x("review-pr")})})]})}function hN({hasAnySessions:l,onOpenProject:i,onReviewPr:r}){return l?f.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-8",children:[f.jsx("div",{className:"w-14 h-14 rounded-full bg-surface border border-border flex items-center justify-center mb-4",children:f.jsx(Tl,{className:"w-7 h-7 text-text-secondary"})}),f.jsx("h2",{className:"text-text-primary text-lg font-semibold mb-2",children:"Select a session"}),f.jsx("p",{className:"text-text-secondary text-sm max-w-sm mb-4",children:"Click a session in the sidebar to view its diff, annotations, and submit your review."}),f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsxs("button",{onClick:r,className:"flex items-center gap-1.5 text-accent text-xs font-medium hover:text-accent/80 transition-colors",children:[f.jsx(ta,{className:"w-3.5 h-3.5"}),"Review PR"]}),f.jsxs("button",{onClick:i,className:"flex items-center gap-1.5 text-text-secondary text-xs font-medium hover:text-text-primary transition-colors",children:[f.jsx(Na,{className:"w-3.5 h-3.5"}),"Open Project"]})]})]}):f.jsx(gN,{onOpenProject:i,onReviewPr:r})}function gN({onOpenProject:l,onReviewPr:i}){const[r,s]=D.useState(null);D.useEffect(()=>{const d=hs();d&&fetch(`http://localhost:${d}/api/status`).then(h=>h.json()).then(h=>{s(h)}).catch(()=>{})},[]);const o=d=>{if(d<60)return`${Math.floor(d)}s`;if(d<3600)return`${Math.floor(d/60)}m ${Math.floor(d%60)}s`;const h=Math.floor(d/3600),p=Math.floor(d%3600/60);return`${h}h ${p}m`};return f.jsx("div",{className:"flex flex-col items-center justify-center h-full px-8",children:f.jsxs("div",{className:"max-w-md w-full",children:[f.jsxs("div",{className:"text-center mb-8",children:[f.jsx("h1",{className:"text-text-primary text-2xl font-bold mb-1",children:"DiffPrism"}),f.jsx("p",{className:"text-text-secondary text-sm",children:"Code review for AI-generated changes"})]}),f.jsxs("div",{className:"flex gap-3 mb-4",children:[f.jsxs("button",{onClick:i,className:"flex-1 flex items-center justify-center gap-2 bg-accent/15 text-accent text-sm font-medium rounded-lg px-4 py-3 hover:bg-accent/25 transition-colors",children:[f.jsx(ta,{className:"w-4 h-4"}),"Review PR"]}),f.jsxs("button",{onClick:l,className:"flex-1 flex items-center justify-center gap-2 bg-surface border border-border text-text-primary text-sm font-medium rounded-lg px-4 py-3 hover:bg-border/30 transition-colors",children:[f.jsx(Na,{className:"w-4 h-4"}),"Open Project"]})]}),f.jsxs("div",{className:"bg-surface border border-border rounded-lg p-6",children:[f.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Getting Started"}),f.jsxs("div",{className:"mb-5",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[f.jsx(Mv,{className:"w-4 h-4 text-text-secondary"}),f.jsx("span",{className:"text-text-secondary text-xs font-medium",children:"From the terminal"})]}),f.jsxs("div",{className:"space-y-1.5 pl-6",children:[f.jsx("code",{className:"block text-accent text-xs",children:"$ diffprism review"}),f.jsx("code",{className:"block text-accent text-xs",children:"$ diffprism review --staged"})]})]}),f.jsxs("div",{className:"mb-5",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[f.jsx(Tl,{className:"w-4 h-4 text-text-secondary"}),f.jsx("span",{className:"text-text-secondary text-xs font-medium",children:"From Claude Code"})]}),f.jsxs("p",{className:"text-text-secondary text-xs pl-6",children:["Type ",f.jsx("code",{className:"text-accent",children:"/review"})," or use the"," ",f.jsx("code",{className:"text-accent",children:"open_review"})," MCP tool"]})]}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[f.jsx(kv,{className:"w-4 h-4 text-text-secondary"}),f.jsx("span",{className:"text-text-secondary text-xs font-medium",children:"First time?"})]}),f.jsxs("div",{className:"pl-6",children:[f.jsx("code",{className:"block text-accent text-xs mb-1",children:"$ diffprism setup"}),f.jsx("p",{className:"text-text-secondary text-xs",children:"Configures Claude Code integration in one command"})]})]})]}),r&&f.jsxs("p",{className:"text-text-secondary text-xs text-center mt-4",children:["Server running · PID ",r.pid," · up ",o(r.uptime)]})]})})}function mN(){const{permission:l,enabled:i,toggle:r,notifyNewSession:s,notifySessionUpdated:o,notifyDiffUpdated:d,notifyAnnotationAdded:h}=iv({onSessionSelect:ee}),{sendResult:p,selectSession:g,closeSession:m,connectionStatus:v}=lv({onSessionAdded:s,onSessionUpdated:o,onDiffUpdated:d,onAnnotationAdded:h}),{diffSet:x,metadata:S,theme:E,isWatchMode:A,watchSubmitted:C,hasUnreviewedChanges:_,setWatchSubmitted:U,isServerMode:I,sessions:O,activeSessionId:$,selectSession:Y,removeSession:F,clearReview:H}=Fe(),[R,K]=D.useState(!1),[ie,re]=D.useState(3);sv(),D.useEffect(()=>{const L=document.documentElement;E==="dark"?L.classList.add("dark"):L.classList.remove("dark")},[E]);function fe(L){p(L),I?H():A?U(!0):K(!0)}function ne(){p({decision:"dismissed",comments:[]}),I&&$?(F($),m($)):A?U(!0):K(!0)}function ee(L){Y(L),g(L)}function W(L){F(L),m(L)}const k=D.useCallback(()=>{window.close()},[]);return D.useEffect(()=>{if(!R||A||I)return;if(ie<=0){k();return}const L=setTimeout(()=>{re(le=>le-1)},1e3);return()=>clearTimeout(L)},[R,ie,k,A,I]),R?f.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:"w-16 h-16 rounded-full bg-success/15 border border-success/30 flex items-center justify-center mx-auto mb-4",children:f.jsx("svg",{className:"w-8 h-8 text-success",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),f.jsx("h1",{className:"text-text-primary text-xl font-semibold mb-2",children:"Review Submitted"}),f.jsxs("p",{className:"text-text-secondary text-sm",children:["Closing in ",ie,"s..."]})]})}):I?v==="disconnected"?f.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:"w-12 h-12 rounded-full bg-danger/15 border border-danger/30 flex items-center justify-center mx-auto mb-4",children:f.jsx("svg",{className:"w-6 h-6 text-danger",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),f.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:"Connection Lost"}),f.jsx("p",{className:"text-text-secondary text-sm",children:"Unable to connect to the DiffPrism server."})]})}):f.jsx(dN,{sessions:O,activeSessionId:$,hasDiffLoaded:!!x,onSelectSession:ee,onCloseSession:W,onSubmit:fe,onDismiss:ne,notificationPermission:l,notificationsEnabled:i,onToggleNotifications:r}):x?f.jsx(by,{onSubmit:fe,onDismiss:ne,isWatchMode:A||I,watchSubmitted:C,hasUnreviewedChanges:_}):f.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:f.jsx("div",{className:"text-center",children:v==="disconnected"?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"w-12 h-12 rounded-full bg-danger/15 border border-danger/30 flex items-center justify-center mx-auto mb-4",children:f.jsx("svg",{className:"w-6 h-6 text-danger",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),f.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:"Connection Lost"}),f.jsx("p",{className:"text-text-secondary text-sm",children:"Unable to connect to the DiffPrism server. Please check the terminal and try again."})]}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"mb-4 flex justify-center",children:f.jsx("div",{className:"w-8 h-8 border-2 border-accent/30 border-t-accent rounded-full animate-spin"})}),f.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:v==="connecting"?"Connecting...":"Waiting for review data..."}),f.jsx("p",{className:"text-text-secondary text-sm",children:(S==null?void 0:S.title)??"Loading review..."})]})})})}W0.createRoot(document.getElementById("root")).render(f.jsx(mN,{}));
|